matic

Polygon (MATIC)

Method: POST eth_getFilterChanges

dropdown
POST

eth_getFilterChanges

Polling method for a filter, which returns an array of logs which occurred since last poll.

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_getFilterChanges",
"params": ["0x16"],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "address": "0x2791bca1f2de4661ed88a30c99a7a9449aa84174",
            "topics": [
                "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                "0x000000000000000000000000db6f1920a889355780af7570773609bd8cb1f498",
                "0x0000000000000000000000003a1d87f206d12415f5b0a33e786967680aab4f6d"
            ],
            "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffbb36445ce736",
            "blockNumber": "0x123e57f",
            "transactionHash": "0x0ed6f85fc32d2a9d29d5ecce13d3d79e73cb787eb2150ee88eb2e0ea5813fd01",
            "transactionIndex": "0x0",
            "blockHash": "0xf188434e8b680f895edd787f4baa4bfb69def385ad1f827234ee8b653e21e62e",
            "logIndex": "0x3",
            "removed": false
        },
        {
            "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270",
            "topics": [
                "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
                "0x0000000000000000000000008312a29a91d9fac706f4d2adeb1fa4540fad1673",
                "0x000000000000000000000000db6f1920a889355780af7570773609bd8cb1f498"
            ],
            "data": "0x0000000000000000000000000000000000000000000000b77d11b2fb27452c45",
            "blockNumber": "0x123e57f",
            "transactionHash": "0x0ed6f85fc32d2a9d29d5ecce13d3d79e73cb787eb2150ee88eb2e0ea5813fd01",
            "transactionIndex": "0x0",
            "blockHash": "0xf188434e8b680f895edd787f4baa4bfb69def385ad1f827234ee8b653e21e62e",
            "logIndex": "0x4",
            "removed": false
        }
    ]
}