getEventTopic
getEventTopic(
eventSignature):string
Defined in: utils/event-topic.ts:16
Computes the keccak256 hash (topic0) of an event signature string.
Parameters
eventSignature
string
the event signature, e.g. “Transfer(address,address,uint256)“
Returns
string
the keccak256 hash as a hex string
Example
getEventTopic('Transfer(address,address,uint256)');// '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'