Parameters
- blockNumber/tagstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
- 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
- objectobject | 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
- 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
(Optional) 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
(Optional) Arbitrum-specific field
l1BlockNumberon L2 blocks
- sendCountstring
(Optional) Arbitrum-specific field
sendCounton L2 blocks
- sendRootstring
(Optional) Arbitrum-specific field
sendRooton L2 blocks
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x989680",6"difficulty": "0x1",7"extraData": "0xf9086c2889dc3cfa69524ebeed25d8edf36e5a7ddf98a88bca1e6ae54b353143",8"gasLimit": "0x4000000000000",9"gasUsed": "0x42f6c",10"hash": "0xb3002a157a8cc731622d0099724487bee13692fd90cef481c27af5f36a5a14a8",11"l1BlockNumber": "0x10c592e",12"logsBloom": "0x002000080000000000040000800000000000000000000008020000000000000000000000000000000000000000004000021000000000000000000000002020000004000000000000000000080000002008800000000000000000000000000000000000000200000200000000000008000000000000000000000000104000000000000300000000000000000080000010000000000000000840000040000000000a0000000020000000008000000000000020000000000010000000000000000000000002000200000000000000000000000000000000001000008000080020000010200000000000000000000000000000100000000000000000000800000000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x000000000000a3f000000000010c592e000000000000000a0000000000000000",15"nonce": "0x0000000000038015",16"number": "0xc5043f",17"parentHash": "0x8e124c3e3bd0babf52d3b2b66c38b6b5824dcadad0ef9581745de6108da1ff7d",18"receiptsRoot": "0x215deb7e5f23e96ad799838dc9b71423c266be299ada9c0179b594f1580f1f68",19"sendCount": "0xa3f0",20"sendRoot": "0xf9086c2889dc3cfa69524ebeed25d8edf36e5a7ddf98a88bca1e6ae54b353143",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x56f",23"stateRoot": "0x401d0d4893d869d36d142bd445cc8cf1d9bc6ded0172d679e5d8b91471e81efd",24"timestamp": "0x649dc0ee",25"transactions": [26"0xbb7915eb0d6d76df70543054b5a4e6e3806a2493611920632b74b8abe4262660",27"0xcd09494302460345e7acef15b71efb9bcfbdb1ffc75296664d6d8c2f27757bcf"28],29"transactionsRoot": "0x35407677fa51e5078daac034c0b278fa6978db05eb689fc05ca14c688b41cfe7",30"uncles": []31}32}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x989680",6"difficulty": "0x1",7"extraData": "0xf9086c2889dc3cfa69524ebeed25d8edf36e5a7ddf98a88bca1e6ae54b353143",8"gasLimit": "0x4000000000000",9"gasUsed": "0x42f6c",10"hash": "0xb3002a157a8cc731622d0099724487bee13692fd90cef481c27af5f36a5a14a8",11"l1BlockNumber": "0x10c592e",12"logsBloom": "0x002000080000000000040000800000000000000000000008020000000000000000000000000000000000000000004000021000000000000000000000002020000004000000000000000000080000002008800000000000000000000000000000000000000200000200000000000008000000000000000000000000104000000000000300000000000000000080000010000000000000000840000040000000000a0000000020000000008000000000000020000000000010000000000000000000000002000200000000000000000000000000000000001000008000080020000010200000000000000000000000000000100000000000000000000800000000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x000000000000a3f000000000010c592e000000000000000a0000000000000000",15"nonce": "0x0000000000038015",16"number": "0xc5043f",17"parentHash": "0x8e124c3e3bd0babf52d3b2b66c38b6b5824dcadad0ef9581745de6108da1ff7d",18"receiptsRoot": "0x215deb7e5f23e96ad799838dc9b71423c266be299ada9c0179b594f1580f1f68",19"sendCount": "0xa3f0",20"sendRoot": "0xf9086c2889dc3cfa69524ebeed25d8edf36e5a7ddf98a88bca1e6ae54b353143",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x56f",23"stateRoot": "0x401d0d4893d869d36d142bd445cc8cf1d9bc6ded0172d679e5d8b91471e81efd",24"timestamp": "0x649dc0ee",25"transactions": [26"0xbb7915eb0d6d76df70543054b5a4e6e3806a2493611920632b74b8abe4262660",27"0xcd09494302460345e7acef15b71efb9bcfbdb1ffc75296664d6d8c2f27757bcf"28],29"transactionsRoot": "0x35407677fa51e5078daac034c0b278fa6978db05eb689fc05ca14c688b41cfe7",30"uncles": []31}32}