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 the 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
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{27"blockHash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",28"blockNumber": "0x181f92",29"blockTimestamp": "0x6aee1f6c",30"from": "0x00000000000000000000000000000000000a4b05",31"gas": "0x0",32"gasPrice": "0x0",33"hash": "0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",34"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030386330000000000000000000000000000000000000000000000000000000000181f920000000000000000000000000000000000000000000000000000000000000000",35"nonce": "0x0",36"to": "0x00000000000000000000000000000000000a4b05",37"transactionIndex": "0x0",38"value": "0x0",39"type": "0x6a",40"chainId": "0x1863d",41"v": "0x0",42"r": "0x0",43"s": "0x0"44},45{46"blockHash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",47"blockNumber": "0x181f92",48"blockTimestamp": "0x6aee1f6c",49"from": "0x54bf055108f9af5da4f4dfe2eda125842acae622",50"gas": "0x1d4c0",51"gasPrice": "0x8f899b0",52"maxFeePerGas": "0x1b187e30",53"maxPriorityFeePerGas": "0x302b8b0",54"hash": "0x5b40f41726f5fcfc5b89d369fb57696d31380ebe9b41cd8976aa7bdda65c31a4",55"input": "0x005e7c42e4464686e518cf3b3b37478f6d60600000000000000001a1b22ab60f00377b2bde7b7b0000000000000000000000000000000000000001a1b22ab60f0102d9167ca3a30000000000000000000000000000000000000001a1b22ab60f02",56"nonce": "0x2c4",57"to": "0xe844701934d9c6085b292e428f41b911cc0b3872",58"transactionIndex": "0x1",59"value": "0x0",60"type": "0x2",61"accessList": [],62"chainId": "0x1863d",63"v": "0x1",64"r": "0xdbd067ef040bc7bf70c2accefab8b035ff0362446735035a822145d39b08304c",65"s": "0x4b87881c791b2e2d7b0afc768585d89775e08b6edabb5ee6f12617452f620c0",66"yParity": "0x1"67}68],69"transactionsRoot": "0xe5d780878e1d3d2130a4125dabd2648de8f697d32bab3d71bc2e65b23fb50cca",70"uncles": []71}72}
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{27"blockHash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",28"blockNumber": "0x181f92",29"blockTimestamp": "0x6aee1f6c",30"from": "0x00000000000000000000000000000000000a4b05",31"gas": "0x0",32"gasPrice": "0x0",33"hash": "0xd9e9fb6a2e4ecd022f80a4957ac98f590152326f0e147850d000938f431c190c",34"input": "0x6bf6a42d000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030386330000000000000000000000000000000000000000000000000000000000181f920000000000000000000000000000000000000000000000000000000000000000",35"nonce": "0x0",36"to": "0x00000000000000000000000000000000000a4b05",37"transactionIndex": "0x0",38"value": "0x0",39"type": "0x6a",40"chainId": "0x1863d",41"v": "0x0",42"r": "0x0",43"s": "0x0"44},45{46"blockHash": "0x7185f42907301265eb75253e74bd652d425d9a6e95f5d5aeb749a15af7269ad0",47"blockNumber": "0x181f92",48"blockTimestamp": "0x6aee1f6c",49"from": "0x54bf055108f9af5da4f4dfe2eda125842acae622",50"gas": "0x1d4c0",51"gasPrice": "0x8f899b0",52"maxFeePerGas": "0x1b187e30",53"maxPriorityFeePerGas": "0x302b8b0",54"hash": "0x5b40f41726f5fcfc5b89d369fb57696d31380ebe9b41cd8976aa7bdda65c31a4",55"input": "0x005e7c42e4464686e518cf3b3b37478f6d60600000000000000001a1b22ab60f00377b2bde7b7b0000000000000000000000000000000000000001a1b22ab60f0102d9167ca3a30000000000000000000000000000000000000001a1b22ab60f02",56"nonce": "0x2c4",57"to": "0xe844701934d9c6085b292e428f41b911cc0b3872",58"transactionIndex": "0x1",59"value": "0x0",60"type": "0x2",61"accessList": [],62"chainId": "0x1863d",63"v": "0x1",64"r": "0xdbd067ef040bc7bf70c2accefab8b035ff0362446735035a822145d39b08304c",65"s": "0x4b87881c791b2e2d7b0afc768585d89775e08b6edabb5ee6f12617452f620c0",66"yParity": "0x1"67}68],69"transactionsRoot": "0xe5d780878e1d3d2130a4125dabd2648de8f697d32bab3d71bc2e65b23fb50cca",70"uncles": []71}72}