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.
Criteria to filter events. All fields are joined with the AND
operator.
null
fields are ignored.
Example:
{
"address": "0x0000000000000000000000000000456E65726779",
"topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}
This matches events emitted by 0x6d95e6dca01d109882fe1726a2fb9865fa41e7aa
with topic0
equal to 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
.
{"address":"0x0000000000000000000000000000456E65726779","topic0":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef","topic1":"0x0000000000000000000000006d95e6dca01d109882fe1726a2fb9865fa41e7aa"}
Specifies the order of the results. Use asc
for ascending order, and desc
for descending order.
Default value: asc