matic

Polygon (MATIC)

Method: POST eth_getFilterLogs

dropdown
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://matic.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": [
        {
            "address": "0x2953399124f0cbb46d2cbacd8a89cf0599974963",
            "topics": [
                "0x5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b"
            ],
            "data": "0x0000000000000000000000004eb75afcf1d835d7bdddd8f56ab1b2b5b66410680000000000000000000000003ce07ad298ee2b3aabea8c8b3f496c3acc51e647000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000e4f242432a0000000000000000000000004eb75afcf1d835d7bdddd8f56ab1b2b5b6641068000000000000000000000000ecdab59c7ebac9eb1a3f701623289c8a04909c5d4eb75afcf1d835d7bdddd8f56ab1b2b5b6641068000000000000920000002710000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "blockNumber": "0x123e5ba",
            "transactionHash": "0x0013fb4b849bb57a50828cdcb16e2c14d90ebc0f41d95f932e7dfee0809283c9",
            "transactionIndex": "0x0",
            "blockHash": "0x1d62f0c6a3164b39e5f543b3180b860ee70e24ef68755bd2b754106e5094a967",
            "logIndex": "0x0",
            "removed": false
        },
        {
            "address": "0x2953399124f0cbb46d2cbacd8a89cf0599974963",
            "topics": [
                "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62",
                "0x0000000000000000000000004eb75afcf1d835d7bdddd8f56ab1b2b5b6641068",
                "0x0000000000000000000000004eb75afcf1d835d7bdddd8f56ab1b2b5b6641068",
                "0x000000000000000000000000ecdab59c7ebac9eb1a3f701623289c8a04909c5d"
            ],
            "data": "0x4eb75afcf1d835d7bdddd8f56ab1b2b5b66410680000000000009200000027100000000000000000000000000000000000000000000000000000000000000001",
            "blockNumber": "0x123e5ba",
            "transactionHash": "0x0013fb4b849bb57a50828cdcb16e2c14d90ebc0f41d95f932e7dfee0809283c9",
            "transactionIndex": "0x0",
            "blockHash": "0x1d62f0c6a3164b39e5f543b3180b860ee70e24ef68755bd2b754106e5094a967",
            "logIndex": "0x1",
            "removed": false
        }
    ]
}