Parameters
- blockNumberstringREQUIRED
The timestamp of the block or block number in hexadecimal format
- transaction_detail_flagbooleanREQUIRED
The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions
Returns
- resultobject | null
A block object, or null when no block was found. The block object contains the following fields:
- 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
- auraSealstring
The Aura seal for this block, encoded as hexadecimal.
- auraStepstring
The Aura step for this block, encoded as hexadecimal.
- 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 | null
The block hash of the requested block. null if pending
- logsBloomstring | null
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 | null
The hash of the generated proof-of-work. null if pending
- numberstring | null
The block number of the requested block encoded as 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
- sizestring
The size of this block in bytes as an Integer value encoded as hexadecimal
- stateRootstring
The root of the final state trie of the block
- timestampstring
The UNIX timestamp for when the block was collated
- totalDifficultystring
The integer of the total difficulty of the chain until this block encoded as a hexadecimal
- transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"auraSeal": "0xc35e9f8ac05c69d8c36af2cb8b7bb3beda5945e8367fec758c459d32f9ddc183206bad888ebd7addaa6e3f00593100a628c5e86ca80ebe48d4fc831dd36f825d01",6"auraStep": "0x1258baa5",7"difficulty": "0xffffffffffffffffffffffffeda7455a",8"extraData": "0xde830201018f5061726974792d457468657265756d86312e32392e30826c69",9"gasLimit": "0x989680",10"gasUsed": "0x0",11"hash": "0x96059ccf6d5b78b7f30795cd9661f77a117b94ae458020e9010d5a9968376be4",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"miner": "0xcace5b3c29211740e595850e80478416ee77ca21",14"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",15"nonce": "0x0000000000000000",16"number": "0x1",17"parentHash": "0x4f1dd23188aab3a76b463e4af801b52b1248ef073c648cbdc4c9333d3da79756",18"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",19"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",20"size": "0x249",21"stateRoot": "0x40cf4430ecaa733787d1a65154a3b9efb560c95d9e324a23b97f0609b539133b",22"timestamp": "0x5bbba539",23"transactions": [],24"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",25"uncles": []26}27}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"auraSeal": "0xc35e9f8ac05c69d8c36af2cb8b7bb3beda5945e8367fec758c459d32f9ddc183206bad888ebd7addaa6e3f00593100a628c5e86ca80ebe48d4fc831dd36f825d01",6"auraStep": "0x1258baa5",7"difficulty": "0xffffffffffffffffffffffffeda7455a",8"extraData": "0xde830201018f5061726974792d457468657265756d86312e32392e30826c69",9"gasLimit": "0x989680",10"gasUsed": "0x0",11"hash": "0x96059ccf6d5b78b7f30795cd9661f77a117b94ae458020e9010d5a9968376be4",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"miner": "0xcace5b3c29211740e595850e80478416ee77ca21",14"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",15"nonce": "0x0000000000000000",16"number": "0x1",17"parentHash": "0x4f1dd23188aab3a76b463e4af801b52b1248ef073c648cbdc4c9333d3da79756",18"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",19"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",20"size": "0x249",21"stateRoot": "0x40cf4430ecaa733787d1a65154a3b9efb560c95d9e324a23b97f0609b539133b",22"timestamp": "0x5bbba539",23"transactions": [],24"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",25"uncles": []26}27}