Parameters
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
The method returns the full transaction objects when the value is true otherwise, it returns only the hashes of the transactions
Returns
A block object, or null when no block was found
A string of the base fee encoded in hexadecimal format, not included for blocks before EIP-1559
The integer of the difficulty for the block encoded as a hexadecimal
The extra data field of the block
The maximum gas allowed in the block encoded as a hexadecimal
The total used gas by all transactions in the block encoded as a hexadecimal
The block hash of the requested block, null if pending
Parent chain block number encoded as hexadecimal
The bloom filter for the logs of the block, null if pending
The address of the beneficiary to whom the mining rewards were given
A string of a 256-bit hash encoded as a hexadecimal
The hash of the generated proof-of-work, null if pending
The block number of the requested block encoded as a hexadecimal, null if pending
The hash of the parent block
The root of the receipts trie of the block
The send count
The send root hash
The SHA3 of the uncles data in the block
The size of the block in bytes as an integer value encoded as hexadecimal
The root of the final state trie of the block
The unix timestamp for when the block was collated
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.
The root of the transaction trie of the block
An array of uncle hashes
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x5f65630",6"difficulty": "0x1",7"extraData": "0x80367f3a75593d98d66860450b60f7b720d84dd7818f7aefd29bb3e5e0a098ab",8"gasLimit": "0x4000000000000",9"gasUsed": "0x34cbb",10"hash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",11"l1BlockNumber": "0x3fe240a",12"logsBloom": "0x00000000000000100000000000000000400000020000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000008000000040000000000000000090004000000000010000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000101400000000000000000800000000100000000000000000000000000000000000000200000000000000000000000000000000000200000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x000000000007f8a40000000003fe240a000000000000003d0000000000000000",15"nonce": "0x00000000000b9c92",16"number": "0x92c210",17"parentHash": "0x8f0964ccab4144291d5e8153fed2e5454d39e599e2ef7e4964248e776956f9da",18"receiptsRoot": "0xfbe7ceec8e5eace28fe2016be1bb8bf001d7d6ae52867215c5b6915793847e68",19"sendCount": "0x7f8a4",20"sendRoot": "0x80367f3a75593d98d66860450b60f7b720d84dd7818f7aefd29bb3e5e0a098ab",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x45a",23"stateRoot": "0x3bb279fceb52ee574adfd815ee0e57a334560059fde098d0b176fd595a130308",24"timestamp": "0x6ad1095e",25"transactions": [26{27"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",28"blockNumber": "0x92c210",29"blockTimestamp": "0x6ad1095e",30"from": "0x00000000000000000000000000000000000a4b05",31"gas": "0x0",32"gasPrice": "0x0",33"hash": "0xe31e45aaf55e7efb57fb27d3d720a15b14230ea37b9b4a293791a55098c1edbe",34"input": "0x6bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe240a000000000000000000000000000000000000000000000000000000000092c2100000000000000000000000000000000000000000000000000000000000000000",35"nonce": "0x0",36"to": "0x00000000000000000000000000000000000a4b05",37"transactionIndex": "0x0",38"value": "0x0",39"type": "0x6a",40"chainId": "0x185d9",41"v": "0x0",42"r": "0x0",43"s": "0x0"44},45{46"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",47"blockNumber": "0x92c210",48"blockTimestamp": "0x6ad1095e",49"from": "0xe670ffa1d10d0825077afdbbb76fc93dfd10266c",50"gas": "0x158d08",51"gasPrice": "0x5f65630",52"maxFeePerGas": "0x7270e00",53"maxPriorityFeePerGas": "0x0",54"hash": "0xb67fd281fe0672a7671db6b3bd41208c2de067887c6c18e813d8f460ecf66b04",55"input": "0xa07076b200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d0e627cd8e3197503cc1283fdb7f97fb3d6c5d9500000000000000000000000000000000000000000000000000000000000002cf0000000000000000000000003af31c44a2419b8356dae9ce0f8526bbe2a6458f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000041051f27c609db70af05b7128f15155dc8e49ac70000000000000000000000000000000000000000000000000000000000000001",56"nonce": "0x73",57"to": "0x0ff8b7afc288ac42f82320f54a49c400f233bf07",58"transactionIndex": "0x1",59"value": "0x470de4df820000",60"type": "0x2",61"accessList": [],62"chainId": "0x185d9",63"v": "0x0",64"r": "0xf2f9609d431f2301a9e63966483a3bd920c3684e4cd59f08624aa202fa144d9e",65"s": "0x21a7d96c4b28806152b49a40c1780ea57e89c464ab3bf839b2fb0bbf548fe2a1",66"yParity": "0x0"67}68],69"transactionsRoot": "0x4b5d29455f98520d137863e9a6b1e65fde7f0b5aaeb4d1d5bcaa47e1cc21093c",70"uncles": []71}72}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x5f65630",6"difficulty": "0x1",7"extraData": "0x80367f3a75593d98d66860450b60f7b720d84dd7818f7aefd29bb3e5e0a098ab",8"gasLimit": "0x4000000000000",9"gasUsed": "0x34cbb",10"hash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",11"l1BlockNumber": "0x3fe240a",12"logsBloom": "0x00000000000000100000000000000000400000020000000001100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000008000000040000000000000000090004000000000010000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000101400000000000000000800000000100000000000000000000000000000000000000200000000000000000000000000000000000200000",13"miner": "0xa4b000000000000000000073657175656e636572",14"mixHash": "0x000000000007f8a40000000003fe240a000000000000003d0000000000000000",15"nonce": "0x00000000000b9c92",16"number": "0x92c210",17"parentHash": "0x8f0964ccab4144291d5e8153fed2e5454d39e599e2ef7e4964248e776956f9da",18"receiptsRoot": "0xfbe7ceec8e5eace28fe2016be1bb8bf001d7d6ae52867215c5b6915793847e68",19"sendCount": "0x7f8a4",20"sendRoot": "0x80367f3a75593d98d66860450b60f7b720d84dd7818f7aefd29bb3e5e0a098ab",21"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",22"size": "0x45a",23"stateRoot": "0x3bb279fceb52ee574adfd815ee0e57a334560059fde098d0b176fd595a130308",24"timestamp": "0x6ad1095e",25"transactions": [26{27"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",28"blockNumber": "0x92c210",29"blockTimestamp": "0x6ad1095e",30"from": "0x00000000000000000000000000000000000a4b05",31"gas": "0x0",32"gasPrice": "0x0",33"hash": "0xe31e45aaf55e7efb57fb27d3d720a15b14230ea37b9b4a293791a55098c1edbe",34"input": "0x6bf6a42d00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003fe240a000000000000000000000000000000000000000000000000000000000092c2100000000000000000000000000000000000000000000000000000000000000000",35"nonce": "0x0",36"to": "0x00000000000000000000000000000000000a4b05",37"transactionIndex": "0x0",38"value": "0x0",39"type": "0x6a",40"chainId": "0x185d9",41"v": "0x0",42"r": "0x0",43"s": "0x0"44},45{46"blockHash": "0x4659abbf3cb14ae45c5db1375d5264ed365fde139763ecb6a3577c60eb0a3799",47"blockNumber": "0x92c210",48"blockTimestamp": "0x6ad1095e",49"from": "0xe670ffa1d10d0825077afdbbb76fc93dfd10266c",50"gas": "0x158d08",51"gasPrice": "0x5f65630",52"maxFeePerGas": "0x7270e00",53"maxPriorityFeePerGas": "0x0",54"hash": "0xb67fd281fe0672a7671db6b3bd41208c2de067887c6c18e813d8f460ecf66b04",55"input": "0xa07076b200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000d0e627cd8e3197503cc1283fdb7f97fb3d6c5d9500000000000000000000000000000000000000000000000000000000000002cf0000000000000000000000003af31c44a2419b8356dae9ce0f8526bbe2a6458f000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000041051f27c609db70af05b7128f15155dc8e49ac70000000000000000000000000000000000000000000000000000000000000001",56"nonce": "0x73",57"to": "0x0ff8b7afc288ac42f82320f54a49c400f233bf07",58"transactionIndex": "0x1",59"value": "0x470de4df820000",60"type": "0x2",61"accessList": [],62"chainId": "0x185d9",63"v": "0x0",64"r": "0xf2f9609d431f2301a9e63966483a3bd920c3684e4cd59f08624aa202fa144d9e",65"s": "0x21a7d96c4b28806152b49a40c1780ea57e89c464ab3bf839b2fb0bbf548fe2a1",66"yParity": "0x0"67}68],69"transactionsRoot": "0x4b5d29455f98520d137863e9a6b1e65fde7f0b5aaeb4d1d5bcaa47e1cc21093c",70"uncles": []71}72}