eth_getLogs
Returns an array of all logs matching a given filter object.
- CURL
curl --request POST \
--url https://evm.confluxrpc.com \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"params": [{}],
"method": "eth_getLogs"
}'
Params
filter required
Filter Addresspub type FilterAddress = VariadicValue<H160>; Topicpub type Topic = VariadicValue<H256>; Filter
type : object
address address
oneOf- H160
- (H160,...)[]
type : stringPattern :^0x[0-9,a-f,A-F]{40}$type : arrayitems[x]H160type : stringPattern :^0x[0-9,a-f,A-F]{40}$
blockHash blockHash
type : stringPattern :^0x[0-9,a-f,A-F]{64}$fromBlock fromBlock
oneOf- U64
- BlockHash
- BlockNumber
- string
type : stringPattern :^0x([1-9a-f][0-9a-f]{0,15}|0)$type