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
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
- blobGasUsedstring
The amount of gas used by the blob
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGasstring
The excess gas used by the blob
- 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
- parentBeaconBlockRootstring
The root of the parent beacon block in hexadecimal format
- 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
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- withdrawalsarray
A withdrawals object contains information about withdrawals made by validators. Please note that this field will not be included in a block requested before the EIP-4895 upgrade
- indexstring
The index of the withdrawal to uniquely identify each withdrawal
- validatorIndexstring
The index of the validator who initiated the withdrawal
- addressstring
The address to which the withdrawn amount is sent
- amountstring
The amount of ether, provided in hexadecimal format, corresponding to a certain value in gwei
- withdrawalsRootstring
The Merkle root of withdrawal data. Also, please note that this field will not be included in a block requested before the EIP-4895 upgrade
- requestsHashstring
The hash of the requests in the block. Present after the Pectra upgrade
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x464dc0fc78ef448e18597261ac67ecfdf3c5a6ba0a86d30947ca4d379f0fc46b",6"parentHash": "0x4377b6cc02b83b768faa0d36371b6f6c9a42c300ba50446bf8727b0927b9bf1a",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x514708beda3441cc4e141f8546c096eaab7c8a05",9"stateRoot": "0xb513f1d1427a1748379fdc054cf8a7b74ca8e70189014c1ce17f34eee1bed9f9",10"transactionsRoot": "0xbe4350d9ffa7f82ad7af33d2b8b7279a5b7167b728107b61487f1ac7f0929c45",11"receiptsRoot": "0x558eef27308bc0ae1df25e3c9fa7358206c6eca7591f1990bd6c273aa56fc4cb",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000010000000000000400000000000000800000000008001000000000000000000800080000000000000000000000020000000000000000040800000000000000000002000010000000000004000000000000400000000200000000020000000000000000002000002000000000000000000000000000000000000000000000000000000000000000000001000002000000000000000000000000000000000000000000000000008020000000000000000000000000000000000000000000000000200000000000000000",13"difficulty": "0x0",14"number": "0x50000",15"gasLimit": "0x2faf080",16"gasUsed": "0x350cb",17"timestamp": "0x6a8e16c4",18"extraData": "0x726574682f76322e322e302f6c696e7578",19"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x8",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0x0101010101010101010101010101010101010101010101010101010101010101",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x2d2",28"uncles": [],29"transactions": [30"0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"31],32"withdrawals": []33}34}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"hash": "0x464dc0fc78ef448e18597261ac67ecfdf3c5a6ba0a86d30947ca4d379f0fc46b",6"parentHash": "0x4377b6cc02b83b768faa0d36371b6f6c9a42c300ba50446bf8727b0927b9bf1a",7"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",8"miner": "0x514708beda3441cc4e141f8546c096eaab7c8a05",9"stateRoot": "0xb513f1d1427a1748379fdc054cf8a7b74ca8e70189014c1ce17f34eee1bed9f9",10"transactionsRoot": "0xbe4350d9ffa7f82ad7af33d2b8b7279a5b7167b728107b61487f1ac7f0929c45",11"receiptsRoot": "0x558eef27308bc0ae1df25e3c9fa7358206c6eca7591f1990bd6c273aa56fc4cb",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000010000000000000400000000000000800000000008001000000000000000000800080000000000000000000000020000000000000000040800000000000000000002000010000000000004000000000000400000000200000000020000000000000000002000002000000000000000000000000000000000000000000000000000000000000000000001000002000000000000000000000000000000000000000000000000008020000000000000000000000000000000000000000000000000200000000000000000",13"difficulty": "0x0",14"number": "0x50000",15"gasLimit": "0x2faf080",16"gasUsed": "0x350cb",17"timestamp": "0x6a8e16c4",18"extraData": "0x726574682f76322e322e302f6c696e7578",19"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",20"nonce": "0x0000000000000000",21"baseFeePerGas": "0x8",22"withdrawalsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",23"blobGasUsed": "0x0",24"excessBlobGas": "0x0",25"parentBeaconBlockRoot": "0x0101010101010101010101010101010101010101010101010101010101010101",26"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",27"size": "0x2d2",28"uncles": [],29"transactions": [30"0x5d005403489e1bc301344d2b51fa7f403372cf4e7941c2861aa320f1605c9dd4"31],32"withdrawals": []33}34}