Get a list of a specific event’s occurrences emitted from the contract during a specified time period.
Provide the name of the event, and an optional filter to define the time period to get events for.
structure (generic type)
The event data structure to deserialize into, i.e. what shape the event data should be in.
The name of the event to get logs for.
In Solidity, an event is triggered by the
To listen to this event, use the name of the event as it appears in the contract.
An optional object containing the
toBlock numbers for the time period to get events for.
order field indicates the ordering of the events;
desc (descending) or
filters field allows you to filter on indexed event parameters.
0 and the default