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
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
- 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 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
- 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"difficulty": "0x3ff800000",6"extraData": "0x476574682f76312e302e302f6c696e75782f676f312e342e32",7"gasLimit": "0x1388",8"gasUsed": "0x0",9"hash": "0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6",10"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",11"miner": "0x05a56e2d52c817161883f50c441c3228cfe54d9f",12"mixHash": "0x969b900de27b6ac6a67742365dd65f55a0526c41fd18e1b16f1a1215c2e66f59",13"nonce": "0x539bd4979fef1ec4",14"number": "0x1",15"parentHash": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",16"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",17"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",18"size": "0x219",19"stateRoot": "0xd67e4d450343046425ae4271474353857ab860dbc0a1dde64b41b5cd3a532bf3",20"timestamp": "0x55ba4224",21"transactions": [],22"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"uncles": []24}25}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"difficulty": "0x3ff800000",6"extraData": "0x476574682f76312e302e302f6c696e75782f676f312e342e32",7"gasLimit": "0x1388",8"gasUsed": "0x0",9"hash": "0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6",10"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",11"miner": "0x05a56e2d52c817161883f50c441c3228cfe54d9f",12"mixHash": "0x969b900de27b6ac6a67742365dd65f55a0526c41fd18e1b16f1a1215c2e66f59",13"nonce": "0x539bd4979fef1ec4",14"number": "0x1",15"parentHash": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",16"receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",17"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",18"size": "0x219",19"stateRoot": "0xd67e4d450343046425ae4271474353857ab860dbc0a1dde64b41b5cd3a532bf3",20"timestamp": "0x55ba4224",21"transactions": [],22"transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"uncles": []24}25}