Skip to main content

erigon_getHeaderByNumber

Example

Request

curl --location 'https://bsc-mainnet.public.blastapi.io/<project_id>' \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "erigon_getHeaderByNumber",
"params": [
"50000"
],
"id": 3
}'

Response:

{
"jsonrpc": "2.0",
"id": 3,
"result": {
"parentHash": "0xbed6451b6a34af5182a4b4d912a9ac618fdb19e50451f22518e2ac100116ac00",
"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
"miner": "0xf474cf03cceff28abc65c9cbae594f725c80e12d",
"stateRoot": "0xaa22168b7763e5034d2e6b317a1eada2b72ce41486c29723a0c15353f57e7429",
"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"difficulty": "0x2",
"number": "0xc350",
"gasLimit": "0x1c9c380",
"gasUsed": "0x0",
"timestamp": "0x5f0917ef",
"extraData": "0xd983010000846765746889676f312e31322e3137856c696e75780000000000001284214b9b9c85549ab3d2b972df0deef66ac2c935552c16704d214347f29fa77f77da6d75d7c752980a75ecd1309ea12fa2ed87a8744fbfc9b863d5989dfc34131051f4bfb74b6f60004cb8eab98524a2959d3f95eae5dc7d70144ce1b73b403b7eb6e0b71b214cb885500844365e95cd9942c7276e7fd8f474cf03cceff28abc65c9cbae594f725c80e12d650956a885543e98333116c6cb5bf13a8d839f74803a6263dfe4c93f4e673f54212f2de3e876943bfbcfe9eea19b7384c78aeb9dce143e0ef56c0a603569ca8001",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0x0000000000000000",
"baseFeePerGas": null,
"withdrawalsRoot": null,
"hash": "0x3cc72eff50e18c8ee4bc7e76a0094cd83056ba3299ef8b39ec7f4bc65177764d"
}
}