Event logs are produced by OP_LOG
in EVM.
defines the range to filter in. e.g.
{
"range": {
"unit": "block",
"from": 10,
"to": 1000
}
}
refers to the range from block 10 to block 1000.
null
stands for the full range.
pass these parameters if you need filtered results paged. e.g.
{
"options": {
"offset": 0,
"limit": 10
}
}
the above refers that page offset is 0, and the page size is 10.
pass options null
if you don't need to demand paging.
criteria to filter out event. All fields are joined with and
operator. null
field are ignored. e.g.
{
"address": "0xe59d475abe695c7f67a8a2321f33a856b0b4c71d",
"topic0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
}
matches events emitted by 0xe59d475abe695c7f67a8a2321f33a856b0b4c71d
and with topic0
equals 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
.
{"address":"0xe59d475abe695c7f67a8a2321f33a856b0b4c71d","topic0":"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"}
order of filters, defaults to asc
OK