rsk

Rsk (RSK)

Method: POST eth_getBlockByNumber

dropdown
POST

eth_getBlockByNumber

Returns information about a block by block number.

Parameters

QUANTITY|TAG - integer or string

block number or "latest", "earliest" or "pending"

Boolean - Boolean

If true it returns the full transaction objects, if false only the hashes of the transactions.

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_getBlockByNumber",
"params": ["latest", false],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "bitcoinMergedMiningCoinbaseTransaction": "0x0000000000000100baf576a251d9268ec29418cb004825d65f8911c148317b23534cda30d7a9bef0f2997e00000000000000002b6a2952534b424c4f434b3aace4bb92a920a12183d6cf24f7b5d624233f9c9d96fcd710ea81432400383bc700000000",
        "bitcoinMergedMiningHeader": "0x0420342abc13c9647edde3b952a5703e8c60cfd001f6cf724dfd000000000000000000006a4f8981d876d6a10421909aa856cda14328ecae539531aa10f2c45846370fe552764061e4480f17a58890e4",
        "bitcoinMergedMiningMerkleProof": "0xf4a74b33082db6569639fae9c484099581396580a0632ed5209fcdaffa854411b34923f200cbe7e57d1cfe3c568ecb6d5c6f1cb6a98a299e3417008e262acc34e1aeecd14d4437edfeee87153e32b217c13150fea06fcf228a92791073f3d0881486421543994aafa432fd8af8b6ee039c9d9d42c2d7443bf8556725f17df0da9efa7184cce51228d137176831cb41b7e53ed021f1c8b34f1ee42eec981e006821fceee7eba0b2568f2dcc35695a6201baa594e4733680d54ce39695dfb5abad14f92901613110f7bb38024e27ea2da96fe39ff4ec4337d981b9cf668d36912832ed884c66ed2f2c0960de51917c428f9f4dd900c4bf7299dc42766398db600923b4f959bf5d5c02fd1edabbf13f78432acb3045e6095ff979bb5f3bef2e10ff6945acd04148addc8fd773e95e9c2ab1984afd7c18e13ffca6c68395a7896525ecc4ee669476826f317558f50bb815d20513414b0f040e5ca7cb0b373a530829c61f4ab6bebfce3cdac148fda4defad072832cbf1f93925888d09bbc73f6f16e",
        "cumulativeDifficulty": "0xacdd00f147193bab77",
        "difficulty": "0x3992a073d5fc7d6d41",
        "extraData": "0xce018c495249532d62613031656132",
        "gasLimit": "0x67c280",
        "gasUsed": "0x4218f",
        "hash": "0x45927593e1598fc382102e6971d8d1304b5c7ea9092ce1b2e409599cfc2d52c6",
        "hashForMergedMining": "0xace4bb92a920a12183d6cf24f7b5d624233f9c9d96fcd710ea81432400383bc7",
        "logsBloom": "0x001000000000000200000000000000000000000000000000000000000400000400000000080000000000000000000000000001000000004000080400003000000000008000002804000000080400000000002080000004000400020080c000000000000200200040402000000000000000000000000000000018001000000000000080200000004040000010040000200000000100000000000200000040080402400000000010082000000000000000001004000000002000108000000c400000040003000000000000000000000000000020000100000000200000100000006010010000000000000000000080440000024000040000400000020011900000",
        "miner": "0x1b7a75ef070ff49e6b9491a26403d799f2099ebd",
        "minimumGasPrice": "0x387ee40",
        "number": "0x383bc7",
        "paidFees": "0xfee4b8abe6d",
        "parentHash": "0x0a93e0717b8930d2b8eecaa2da350f6a69b7e1400c764dab220c4f1c66e3c861",
        "receiptsRoot": "0xdf696605753d425920b9d808d38614c608e45e69f93928e26873011f5008f497",
        "sha3Uncles": "0xc3635dfaf4b62063765f207da6d971a455c2c911abb252fec4cd95b7921d650a",
        "size": "0xe74",
        "stateRoot": "0xcde45a1bd47d520166719f0d1ffae77a27a047d9cb4df8bb604aeed43b14ead9",
        "timestamp": "0x6140761d",
        "totalDifficulty": "0xde34409dbcc3bada4ae20ff",
        "transactions": [
            "0x63b2654baf44c76b7796639ae41d8f13a1879120498a98b20c84358d6cd581ad",
            "0xe50b0f114863a128398d18dc3725935a2b5ab78db642d18d8076d1c83a78be28",
            "0xee9bc589e7a5dc50ffaccf1be631dc95ff2102ca05a2a8baa84481745087f630"
        ],
        "transactionsRoot": "0xe2e0f9bfc70fd32362f7fa494d60036a2c3318554c272e1c94a8bd9c20a2ae87",
        "uncles": [
            "0x53c8ede399b310095f677af9bdbe2c911b02534815a0fc9c33ca88dba6b99a5b",
            "0xa325b0eefd06dda443fa3f9d171cbf109f77abc3d5752dd8a3ff8e33b3e665e3"
        ]
    }
}