Parameters
- blockNumberstringREQUIRED
The block number as a string in hexadecimal format or a tag such as latest, earliest, pending, safe, or finalized
Returns
- objectobject
A block object, or null when no block was found:
- baseFeePerGasstring
(Optional) A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- extraDatastring
The “extra data” field of this block
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as a hexadecimal
- hashstring
The block hash of the requested block. null if pending
- logsBloomstring
The bloom filter for the logs of the block. null if pending
- minerstring
The address of the beneficiary to whom the mining rewards were given
- mixHashstring
A string of a 256-bit hash encoded as a hexadecimal
- noncestring
The hash of the generated proof-of-work. null if pending
- numberstring
The block number of the requested block encoded as a hexadecimal. null if pending
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- sha3Unclesstring
The SHA3 of the uncles data in the block
- stateRootstring
The root of the final state trie of the block
- timestampstring
The unix timestamp for when the block was collated
- totalDifficultystring
The total difficulty of the chain until this block as a hexadecimal
- transactionsRootstring
The root of the transaction trie of the block
1{2"jsonrpc": "2.0",3"result": {4"number": "0x1948b37",5"hash": "0xc8139b070d14864aa800e6189ca98d8efb8d70421f8a404b3133b2ffc9e4c619",6"parentHash": "0x2744c618d15e5f616394cc80b8bafc4847076029a50130b5eb472861d7546bca",7"nonce": "0x0000000000000000",8"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",9"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",10"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",11"stateRoot": "0x7876e62348ae9be9779ad0deb8fa5e3e34da24ca0a2338cf6800f31bfcb12cc8",12"miner": "0x0000000000000000000000000000000000000000",13"difficulty": "0x1",14"extraData": "0xd883010c02846765746888676f312e32302e37856c696e757800000000000000fca97115a8b515c92b3559829f5f50adfae8a02afc40f1886f6f422c4e51e85265bbad16eff357cec4e29407f5539e5f7a44dc8010f53add803d80ad19e1144f01",15"gasLimit": "0x1c03a180",16"gasUsed": "0x5208",17"timestamp": "0x6ad29aee",18"transactionsRoot": "0xfb6bb9852499bab4d1af7fffacbbbcfe8488d06b491f54da7478059bcce6b566",19"receiptsRoot": "0xf78dfb743fbd92ade140711c8bbc542b5e307f0ab7984eff35d751969fe57efa",20"baseFeePerGas": "0x7",21"totalDifficulty": "0x1948b38"22},23"id": 124}
1{2"jsonrpc": "2.0",3"result": {4"number": "0x1948b37",5"hash": "0xc8139b070d14864aa800e6189ca98d8efb8d70421f8a404b3133b2ffc9e4c619",6"parentHash": "0x2744c618d15e5f616394cc80b8bafc4847076029a50130b5eb472861d7546bca",7"nonce": "0x0000000000000000",8"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",9"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",10"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",11"stateRoot": "0x7876e62348ae9be9779ad0deb8fa5e3e34da24ca0a2338cf6800f31bfcb12cc8",12"miner": "0x0000000000000000000000000000000000000000",13"difficulty": "0x1",14"extraData": "0xd883010c02846765746888676f312e32302e37856c696e757800000000000000fca97115a8b515c92b3559829f5f50adfae8a02afc40f1886f6f422c4e51e85265bbad16eff357cec4e29407f5539e5f7a44dc8010f53add803d80ad19e1144f01",15"gasLimit": "0x1c03a180",16"gasUsed": "0x5208",17"timestamp": "0x6ad29aee",18"transactionsRoot": "0xfb6bb9852499bab4d1af7fffacbbbcfe8488d06b491f54da7478059bcce6b566",19"receiptsRoot": "0xf78dfb743fbd92ade140711c8bbc542b5e307f0ab7984eff35d751969fe57efa",20"baseFeePerGas": "0x7",21"totalDifficulty": "0x1948b38"22},23"id": 124}