Parameters
- hashstringREQUIRED
The hash (32 bytes) of the block
- transaction detail flagbooleanREQUIRED
(default: false) It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions
Returns
- objectobject
A block object, or null when no block was found
- baseFeePerGasstring
A string of the base fee encoded in hexadecimal format, not included for blocks before EIP-1559
- difficultystring
The integer of the difficulty for the block encoded as a hexadecimal
- extraDatastring
The extra data field of the block
- gasLimitstring
The maximum gas allowed in the block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in the block encoded as a hexadecimal
- hashstring
The block hash of the requested block, null if pending
- l1BlockNumberstring
The L1 block number
- 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
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root of the receipts trie of the block
- sendCountstring
The send count
- sendRootstring
The send root hash
- sha3Unclesstring
The SHA3 of the uncles data in the block
- sizestring
The size of the 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 hashes
- 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"baseFeePerGas": "0x13134d0",6"difficulty": "0x1",7"extraData": "0x1fe1df935cb77bc5db7289d9b602eb5b20041866b4969d1759b7972a33fc711a",8"gasLimit": "0x4000000000000",9"gasUsed": "0x8995",10"hash": "0xd2ef4e91af5fc49137909f323104a64f99a5d500086b5299bacb33d10eb9d17c",11"l1BlockNumber": "0x183f0fd",12"logsBloom": "0x01000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000040000000000000000000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x0000000000000001000000000183f0fd000000000000003d0000000000000000",15"nonce": "0x00000000000010a1",16"number": "0x6d000",17"parentHash": "0xc51947542867be1f92b09f5a8a47e035e77f4b37161f474a73e365e5dc16ea30",18"receiptsRoot": "0xa9545134a8958225d981f47cb0609912b9ef091fc6081dd03a77263a85ce95e8",19"sendCount": "0x1",20"sendRoot": "0x1fe1df935cb77bc5db7289d9b602eb5b20041866b4969d1759b7972a33fc711a",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x36f",23"stateRoot": "0xc9cf53ac56e14addf4c29e252b70e71d68876b23d1279cf32d93367d057c0611",24"timestamp": "0x6a428abd",25"transactions": [26"0xd6ee9e99ee85bf0d99bf1bf0e22c4889d373324afd237027bdc60324054957f1",27"0x33dec5073161051abab063f8dc8d93674d32c77a362054eb2b29acb880f23314"28],29"transactionsRoot": "0x20d9224d0f7efd73307abf45e86e4b86b19bc9a52b609f6ac1617f09a10dfd03",30"uncles": []31}32}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x13134d0",6"difficulty": "0x1",7"extraData": "0x1fe1df935cb77bc5db7289d9b602eb5b20041866b4969d1759b7972a33fc711a",8"gasLimit": "0x4000000000000",9"gasUsed": "0x8995",10"hash": "0xd2ef4e91af5fc49137909f323104a64f99a5d500086b5299bacb33d10eb9d17c",11"l1BlockNumber": "0x183f0fd",12"logsBloom": "0x01000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000040000000000000000000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x0000000000000001000000000183f0fd000000000000003d0000000000000000",15"nonce": "0x00000000000010a1",16"number": "0x6d000",17"parentHash": "0xc51947542867be1f92b09f5a8a47e035e77f4b37161f474a73e365e5dc16ea30",18"receiptsRoot": "0xa9545134a8958225d981f47cb0609912b9ef091fc6081dd03a77263a85ce95e8",19"sendCount": "0x1",20"sendRoot": "0x1fe1df935cb77bc5db7289d9b602eb5b20041866b4969d1759b7972a33fc711a",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x36f",23"stateRoot": "0xc9cf53ac56e14addf4c29e252b70e71d68876b23d1279cf32d93367d057c0611",24"timestamp": "0x6a428abd",25"transactions": [26"0xd6ee9e99ee85bf0d99bf1bf0e22c4889d373324afd237027bdc60324054957f1",27"0x33dec5073161051abab063f8dc8d93674d32c77a362054eb2b29acb880f23314"28],29"transactionsRoot": "0x20d9224d0f7efd73307abf45e86e4b86b19bc9a52b609f6ac1617f09a10dfd03",30"uncles": []31}32}