rsk

Rsk (RSK)

Method: POST eth_getLogs

dropdown

POST eth_getLogs

Returns an array of all logs matching a given filter object.

Parameters

Object - object

The filter options

Request

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


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        {
            "address": "0x542fda317318ebf1d3deaf76e0b632741a7e677d",
            "blockHash": "0x45927593e1598fc382102e6971d8d1304b5c7ea9092ce1b2e409599cfc2d52c6",
            "blockNumber": "0x383bc7",
            "data": "0x00000000000000000000000000000000000000000000000000128760f05c9000",
            "logIndex": "0x0",
            "topics": [
                "0xe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c",
                "0x000000000000000000000000a917bf723433d020a15629eba71f6c2a6b38e52d"
            ],
            "transactionHash": "0x63b2654baf44c76b7796639ae41d8f13a1879120498a98b20c84358d6cd581ad",
            "transactionIndex": "0x0"
        },
        {
            "address": "0x542fda317318ebf1d3deaf76e0b632741a7e677d",
            "blockHash": "0x45927593e1598fc382102e6971d8d1304b5c7ea9092ce1b2e409599cfc2d52c6",
            "blockNumber": "0x383bc7",
            "data": "0x00000000000000000000000000000000000000000000000000128760f05c9000",
            "logIndex": "0x1",
            "topics": [
                "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
                "0x000000000000000000000000a917bf723433d020a15629eba71f6c2a6b38e52d",
                "0x00000000000000000000000098ace08d2b759a265ae326f010496bcd63c15afc"
            ],
            "transactionHash": "0x63b2654baf44c76b7796639ae41d8f13a1879120498a98b20c84358d6cd581ad",
            "transactionIndex": "0x0"
        }
    ]
}