⚡ We welcome businesses to test our enterprise-grade service

arbitrum
Arbitrum

Method: POST eth_getFilterLogs

dropdown

Method RPC eth_getFilterLogs example for Arbitrum

POST eth_getFilterLogs

Returns an array of all logs matching filter with given id.

Parameters

QUANTITY - string

The filter id.

Request

curl --location --request POST 'https://arbitrum.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getFilterLogs",
"params": ["0x16"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "logIndex": "0x1",
            "blockNumber": "0x1b4",
            "blockHash": "0x8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcfdf829c5a142f1fccd7d",
            "transactionHash": "0xdf829c5a142f1fccd7d8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcf",
            "transactionIndex": "0x0",
            "address": "0x16c5785ac562ff41e2dcfdf829c5a142f1fccd7d",
            "data": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "topics": [
                "0x59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a5"
            ]
        }
    ]
}