Event Hash

eventHash is calculated from the eventId and eventArgs:

eventHash = keccak256(eventId,eventArgs)

eventId is the event params combined together to create a unique id.

eventId = EventName + EventChainId + EventContract + EventTransactionHash


  • EventName - the name of the event

  • EventChainId - chainId of the transaction with invoked event

  • EventContract - a contract that invoked the event

  • EventTransactionHash - hash of the transaction with invoked event

EventArgs is the event's arguments. All event arguments will be combined in the same order as they were in the event.

eventArgs = eventArg_1 + eventArg_2 + ... 

For example, for this Transfer event, eventHash will be:


Last updated