⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
avax
Avalanche (AVAX)

Method: POST eth_getFilterLogs

dropdown

# eth_getFilterLogs example for Avalanche (AVAX)

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://avax.getblock.io/mainnet/ext/bc/C/rpc' \
--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": [
        {
            "address": "0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664",
            "blockHash": "0x73d36757ee96901703fa799c15969062ec2271edad373ddecaef19ad5faca0c0",
            "blockNumber": "0xcbf81b",
            "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffb38ec83d24",
            "logIndex": "0x1",
            "removed": false,
            "topics": [
                "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                "0x0000000000000000000000009a7dac091046ec33c329e2269888d57bf907d3c3",
                "0x00000000000000000000000060ae616a2155ee3d9a68541ba4544862310933d4"
            ],
            "transactionHash": "0xe5e227472a950b7888130dd6e6b1b1e024da6c31347fbfff798520f6b1d56086",
            "transactionIndex": "0x2"
        },
        {
            "address": "0xc8a251142722ceb4a524876b89cc4c0709585818",
            "blockHash": "0x73d36757ee96901703fa799c15969062ec2271edad373ddecaef19ad5faca0c0",
            "blockNumber": "0xcbf81b",
            "data": "0x0000000000000000000000000000000000000000000000000000000000e07ec7",
            "logIndex": "0x2",
            "removed": false,
            "topics": [
                "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "0x0000000000000000000000006cb064ce0543315d83b01b0958e968c916fc642b",
                "0x000000000000000000000000c8a251142722ceb4a524876b89cc4c0709585818"
            ],
            "transactionHash": "0xe5e227472a950b7888130dd6e6b1b1e024da6c31347fbfff798520f6b1d56086",
            "transactionIndex": "0x2"
        }
    ]
}