6

Does anyone know how events emitted from a contract?

I can't seem to find an authoritative answer while googling and I am kind of worried that they are synchronous.

Daniel
  • 163
  • 1
  • 6

1 Answers1

8

Events are emitted when a transaction is mined into a block, in the order they are fired.

When watching a pending transaction, this suggests that filters are only notified of all events when the transaction is completed, but the order of events is preserved.

When [events] are called they cause the arguments to be stored in the transaction’s log - a special data structure in the blockchain. These logs are associated with the address of the contract and will be incorporated into the blockchain...

eth
  • 85,679
  • 53
  • 285
  • 406