Parameters
- blockNumber/tagstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
- transaction detail flagREQUIRED
The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions
Returns
- objectobject | null
A block object, or null when no block was found. The block object contains the following fields:
- baseFeePerGasstring
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 | 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
- totalDifficulty
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
- l1BlockNumberstring
Arbitrum-specific field
l1BlockNumberon L2 blocks
- sendCountstring
Arbitrum-specific field
sendCounton L2 blocks
- sendRootstring
Arbitrum-specific field
sendRooton L2 blocks
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0xc5043f",6"hash": "0x8f9ecad637559914862de6821bd352d6ac7744d130085d4c5b3d821786aab3ac",7"parentHash": "0xf1b5d6a7a45df869b2eef85541584c69bbeb7a58f77e557d4898de2b464d5715",8"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",9"nonce": "0x0000000000000000",10"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",11"logsBloom": "0x00080000000000000080000000000010000000000000000000020000000000000000000000000080000000000000004400000000000004000000000000800000000000000000008000000000000000000000000000000000200000000000000000080000000000000000000000000000000000000000000000040000000000080000000000004008004000000000000000800000000000000000000000000000000000000000000000000000040000000000000000004000000000000004000000000000000000000000000000000000000000004000000000000000000000000008000000000010000400000000020000000000000000000000000020000000",12"transactionsRoot": "0xc4b4888ec249430e95f700432d21a3042e5dd2572e68771dc61f73e1fbbd9900",13"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",14"receiptsRoot": "0x17f8ad0067aff1dbb35d5100b1f131838564b3e980e2b8a2674b8d5362d12e97",15"miner": "0x0000000000000000000000000000000000000000",16"difficulty": "0x0",17"totalDifficulty": "0x0",18"extraData": "0x",19"size": "0x0",20"gasLimit": "0xbc87657",21"gasUsed": "0x3daa0",22"timestamp": "0x628dde24",23"transactions": [24"0x39229c9c973b7675086e4404c30fd23b4130bdb33cef8f799ac0450e2489ba08"25],26"uncles": [],27"l1BlockNumber": "0xe2733e"28}29}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"number": "0xc5043f",6"hash": "0x8f9ecad637559914862de6821bd352d6ac7744d130085d4c5b3d821786aab3ac",7"parentHash": "0xf1b5d6a7a45df869b2eef85541584c69bbeb7a58f77e557d4898de2b464d5715",8"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",9"nonce": "0x0000000000000000",10"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",11"logsBloom": "0x00080000000000000080000000000010000000000000000000020000000000000000000000000080000000000000004400000000000004000000000000800000000000000000008000000000000000000000000000000000200000000000000000080000000000000000000000000000000000000000000000040000000000080000000000004008004000000000000000800000000000000000000000000000000000000000000000000000040000000000000000004000000000000004000000000000000000000000000000000000000000004000000000000000000000000008000000000010000400000000020000000000000000000000000020000000",12"transactionsRoot": "0xc4b4888ec249430e95f700432d21a3042e5dd2572e68771dc61f73e1fbbd9900",13"stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",14"receiptsRoot": "0x17f8ad0067aff1dbb35d5100b1f131838564b3e980e2b8a2674b8d5362d12e97",15"miner": "0x0000000000000000000000000000000000000000",16"difficulty": "0x0",17"totalDifficulty": "0x0",18"extraData": "0x",19"size": "0x0",20"gasLimit": "0xbc87657",21"gasUsed": "0x3daa0",22"timestamp": "0x628dde24",23"transactions": [24"0x39229c9c973b7675086e4404c30fd23b4130bdb33cef8f799ac0450e2489ba08"25],26"uncles": [],27"l1BlockNumber": "0xe2733e"28}29}