eth
eth_getFilterLogs
POST
/
id
jsonrpc
method
params
curl --request POST \
--url https://rpc1.taurus.axiomesh.io/
Polling method for a filter, which returns an array of logs which occurred since last poll.
Body
id
number
Serves as a unique identifier for the request
jsonrpc
string
Indicates the version of JSON-RPC being used
method
string
Represents the name of the remote procedure or method to be called
params
array
Contains the list of parameters passed to the remote method.
filterId
string
The filter id.
Response
id
number
Returns unique identifier for the request
jsonrpc
string
Returns the version of JSON-RPC being used.
result
array
For filters created with eth_newBlockFilter the return are block hashes (DATA, 32 Bytes), e.g. [“0x3454645634534…”].
For filters created with eth_newPendingTransactionFilter the return are transaction hashes (DATA, 32 Bytes), e.g. [“0x6345343454645…”].
For filters created with eth_newFilter logs are objects with following params:
curl 'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_getFilterLogs",
"params":["0xa38fb32311426baee6a6c98bb6a469d"],
"id":1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x4cd8ee4fc57c51d8af5b6b6a08cc441f2b4fcbfe",
"topics": [
"0xf9fbd55454309325ccadd998a641a1dfe7cd888eea26c0ae93b95992a13ac144"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000047465737400000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x3",
"transactionHash": "0x8c292190c6449c5897e0b1b5ac0b7d61b76f554d3cf9aa3e7490cb84f274d844",
"transactionIndex": "0x0",
"blockHash": "0xf922bf9ef8548c06e7744b684527a0bbef1adb1617fed50a3c67251ded62e619",
"logIndex": "0x0",
"removed": false
}
]
}
curl 'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc":"2.0",
"method":"eth_getFilterLogs",
"params":["0xa38fb32311426baee6a6c98bb6a469d"],
"id":1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x4cd8ee4fc57c51d8af5b6b6a08cc441f2b4fcbfe",
"topics": [
"0xf9fbd55454309325ccadd998a641a1dfe7cd888eea26c0ae93b95992a13ac144"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000047465737400000000000000000000000000000000000000000000000000000000",
"blockNumber": "0x3",
"transactionHash": "0x8c292190c6449c5897e0b1b5ac0b7d61b76f554d3cf9aa3e7490cb84f274d844",
"transactionIndex": "0x0",
"blockHash": "0xf922bf9ef8548c06e7744b684527a0bbef1adb1617fed50a3c67251ded62e619",
"logIndex": "0x0",
"removed": false
}
]
}