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
Parent chain block number encoded as hexadecimal
- 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
Transaction hashes when the detail flag is false, or full transaction objects when true. Transaction objects include hash, from, to, nonce, input, value, gas, gasPrice, blockHash, blockNumber, and transactionIndex.
- 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": "0x5f5e100",6"difficulty": "0x1",7"extraData": "0x99de393831bb475894fc9f1799e46264b646f9982d1ba4aa73990c8f96047c24",8"gasLimit": "0x4000000000000",9"gasUsed": "0x7fb1",10"hash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",11"l1BlockNumber": "0x3038633",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x00000000000006c40000000003038633000000000000003d0001000000000000",15"nonce": "0x0000000000166bf2",16"number": "0x181f92",17"parentHash": "0x03368aed4e26cd9ef8289034029fe53477c834d27ad229c36598a7338edafbd2",18"receiptsRoot": "0x0e765d628cf5940c92e895609f379f540760f5ee5c8df219f431a8cb8ab2badb",19"sendCount": "0x6c4",20"sendRoot": "0x99de393831bb475894fc9f1799e46264b646f9982d1ba4aa73990c8f96047c24",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x392",23"stateRoot": "0x2b8c93e633154e0482b9f50dc69e5c8643c36f9ea3b7495e0f9ed3a7e3ead575",24"timestamp": "0x6aee1f6c",25"transactions": [26"0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",27"0x5b40f41726f5fcfc5b89d369fb57696d31380ebe9b41cd8976aa7bdda65c31a4"28],29"transactionsRoot": "0xe5d780878e1d3d2130a4125dabd2648de8f697d32bab3d71bc2e65b23fb50cca",30"uncles": []31}32}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x5f5e100",6"difficulty": "0x1",7"extraData": "0x99de393831bb475894fc9f1799e46264b646f9982d1ba4aa73990c8f96047c24",8"gasLimit": "0x4000000000000",9"gasUsed": "0x7fb1",10"hash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",11"l1BlockNumber": "0x3038633",12"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x00000000000006c40000000003038633000000000000003d0001000000000000",15"nonce": "0x0000000000166bf2",16"number": "0x181f92",17"parentHash": "0x03368aed4e26cd9ef8289034029fe53477c834d27ad229c36598a7338edafbd2",18"receiptsRoot": "0x0e765d628cf5940c92e895609f379f540760f5ee5c8df219f431a8cb8ab2badb",19"sendCount": "0x6c4",20"sendRoot": "0x99de393831bb475894fc9f1799e46264b646f9982d1ba4aa73990c8f96047c24",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x392",23"stateRoot": "0x2b8c93e633154e0482b9f50dc69e5c8643c36f9ea3b7495e0f9ed3a7e3ead575",24"timestamp": "0x6aee1f6c",25"transactions": [26"0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",27"0x5b40f41726f5fcfc5b89d369fb57696d31380ebe9b41cd8976aa7bdda65c31a4"28],29"transactionsRoot": "0xe5d780878e1d3d2130a4125dabd2648de8f697d32bab3d71bc2e65b23fb50cca",30"uncles": []31}32}