ContractEventOptions
Index
Properties
optionalfilter
optionalfromBlock
The block number (greater than or equal to) from which to get events on. Pre-defined block numbers as earliest
, latest
, pending
, safe
or finalized
can also be used. For specific range use Contract.getPastEvents.
optionaltopics
This allows to manually set the topics for the event filter. If given the filter property and event signature, (topic[0]) will not be set automatically. Each topic can also be a nested array of topics that behaves as or
operation between the given nested topics.
Let you filter events by indexed parameters, e.g.
{filter: {myNumber: [12,13]}}
means all events wheremyNumber
is12
or13
.