Event
Query smart contract events
Query event logs generated by vechain smart contracts. Events are created using the LOG
opcode in the Ethereum Virtual Machine (EVM).
Event logs provide a way to track specific occurrences and state changes within a smart contract. By querying these logs, you can gain insights into the history of events emitted by a particular contract.
Defines the range for filtering. Setting values to null indicates the entire range.
Note: If omitted or set to null, a timeout may occur if there is a large amount of data to query.
Example:
{
"range": {
"unit": "block",
"from": 10,
"to": 1000
}
}
This refers to the range from block 10 to block 1000.
Include these parameters to receive filtered results in a paged format.
Note: If omitted, a timeout may occur if there is a large amount of data to query. If there is a small amount of data you can omit to receive all results in a single response.
Example:
{
"options": {
"offset": 0,
"limit": 10
}
}
In this example, the page offset is 0, and the page size is 10.
Specifies the order of the results. Use asc
for ascending order, and desc
for descending order.
Default value: asc
OK
The address of the contract that produces the event (bytes20).
"0x0000000000000000000000000000456e65726779"
^0x[0-9a-f]{40}$
Topics are indexed parameters to an event. The first topic is always the event signature.
The data associated with the event.
"0x4de71f2d588aa8a1ea00fe8312d92966da424d9939a511fc0be81e65fad52af8"
^0x[0-9a-f]*$
The event or transfer log metadata such as block number, block timestamp, etc.