Parameters
- blockNumber/tagstringREQUIRED
The block number in hexadecimal format or the string latest, earliest, pending, safe or finalized
- transaction detail flagbooleanREQUIRED
(default: false) The method returns the full transaction objects when this value is true otherwise, it returns only the hashes of the transactions
Returns
- objectobject
The block object containing block metadata, state roots, and transaction references. Null if the block is not found or still pending
- difficultystring
The block difficulty as a hexadecimal string, 0x0 on proof-of-stake networks
- extraDatastring
The extra data field set by the block producer encoded as a hex string
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal string
- gasUsedstring
The total gas used by all transactions in this block encoded as a hexadecimal string
- hashstring
The hash of the block, null if the block is pending
- logsBloomstring
The bloom filter for logs generated in this block, null if pending
- minerstring
The address of the block proposer or beneficiary of block rewards
- mixHashstring
The 256-bit hash used for validating proof-of-work, typically zeroed on proof-of-stake networks
- noncestring
The block nonce value used in proof-of-work, zeroed or null on proof-of-stake networks
- numberstring
The block number encoded as a hexadecimal string, null if pending
- parentHashstring
The hash of the parent block
- receiptsRootstring
The root hash of the receipts trie of this block
- sha3Unclesstring
The SHA3 of the uncles list in this block
- sizestring
The block size in bytes encoded as a hexadecimal string
- stateRootstring
The root hash of the final state trie after all transactions in this block
- timestampstring
The unix timestamp when the block was produced encoded as a hexadecimal string
- totalDifficultystring
The cumulative chain difficulty up to this block encoded as a hexadecimal string
- transactionsarray
The array of transaction hashes included in this block, for detailed objects use eth_getTransactionByHash
- transactionsRootstring
The root hash of the transaction trie of this block
- unclesarray
The array of uncle block hashes referenced by this block
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"difficulty": "0x0",6"extraData": "0x",7"gasLimit": "0x4000000000000",8"gasUsed": "0x11c4f5",9"hash": "0xd1bec3a434c2ed0a3a88eae08350727982c2e46e32b6eaac8d2546f512db1031",10"logsBloom": "0x00240804000000008000020080000000000000000008000000000000000000200000002084000000000000000400000000400108000000000000000000000000000000000001000000000008000000200000000000000000000000008000000000000000020000000000000000808800002000000000004003000010000000000000000000000000080000000000004000000001000000080000084000000000000000000000200000000000000000000000000000004000010000000200008040000002004000000000000000000000000000000000001000000000000020001000000000000000000000000000010000200000000000404200100000000002",11"miner": "0x610de9141a2c51a9a9624278aa97fbe54b27c102",12"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",13"nonce": "0x0000000000000000",14"number": "0x22b12e4",15"parentHash": "0x503bd0a1f21e953c2278aff51a28ab97acf371a66bfe1c3887d5520c02c48032",16"receiptsRoot": "0xf9d706ccd1d9a015f61a1d8b972dffe29626996fb56fce4262e7a1ed7a2afee8",17"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",18"size": "0x9b3",19"stateRoot": "0x84e6c9207d0652dbc3c11fa5ffb60d6cfa4a44f237ca8b4b32a0b64809239d62",20"timestamp": "0x68cd8656",21"totalDifficulty": "0x0",22"transactions": [23"0x81df34c567b67dd5ab3711a79f7e015271c030eb1b63cffa7aa3f0c6d8b6fe7d",24"0x4b502636a59e5e19a302e3b6b1aa4c0f6a0cb698a61fbc641bddff78848f1c84",25"0x8b6bc53dda833c28d32f3b25d38f75928ba5ab527a1adff8743bae2971edd062",26"0x4c51471656562b121b6b70392610de5be9cc02a9315901584fdee36e6837ddc8",27"0x226805ae61592c16fa07e74256a63da3fcdb27b9b7ff4e2eb49a9b7f625b82b0",28"0x1066e5230471346e5b5bc139f4de6725b4f11dacc9b0afb088fe6b5020ce6322",29"0x4a718abbdcc7e77b7d7cbb0f42e7b55acdd17c262a12e632ecd401ba90185a5e"30],31"transactionsRoot": "0x929e7d778380cdc5c3468a4b3d3be0134c00c4ffaa6b5bea6c6aaa1a6a1a1b08",32"uncles": []33}34}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"difficulty": "0x0",6"extraData": "0x",7"gasLimit": "0x4000000000000",8"gasUsed": "0x11c4f5",9"hash": "0xd1bec3a434c2ed0a3a88eae08350727982c2e46e32b6eaac8d2546f512db1031",10"logsBloom": "0x00240804000000008000020080000000000000000008000000000000000000200000002084000000000000000400000000400108000000000000000000000000000000000001000000000008000000200000000000000000000000008000000000000000020000000000000000808800002000000000004003000010000000000000000000000000080000000000004000000001000000080000084000000000000000000000200000000000000000000000000000004000010000000200008040000002004000000000000000000000000000000000001000000000000020001000000000000000000000000000010000200000000000404200100000000002",11"miner": "0x610de9141a2c51a9a9624278aa97fbe54b27c102",12"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",13"nonce": "0x0000000000000000",14"number": "0x22b12e4",15"parentHash": "0x503bd0a1f21e953c2278aff51a28ab97acf371a66bfe1c3887d5520c02c48032",16"receiptsRoot": "0xf9d706ccd1d9a015f61a1d8b972dffe29626996fb56fce4262e7a1ed7a2afee8",17"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",18"size": "0x9b3",19"stateRoot": "0x84e6c9207d0652dbc3c11fa5ffb60d6cfa4a44f237ca8b4b32a0b64809239d62",20"timestamp": "0x68cd8656",21"totalDifficulty": "0x0",22"transactions": [23"0x81df34c567b67dd5ab3711a79f7e015271c030eb1b63cffa7aa3f0c6d8b6fe7d",24"0x4b502636a59e5e19a302e3b6b1aa4c0f6a0cb698a61fbc641bddff78848f1c84",25"0x8b6bc53dda833c28d32f3b25d38f75928ba5ab527a1adff8743bae2971edd062",26"0x4c51471656562b121b6b70392610de5be9cc02a9315901584fdee36e6837ddc8",27"0x226805ae61592c16fa07e74256a63da3fcdb27b9b7ff4e2eb49a9b7f625b82b0",28"0x1066e5230471346e5b5bc139f4de6725b4f11dacc9b0afb088fe6b5020ce6322",29"0x4a718abbdcc7e77b7d7cbb0f42e7b55acdd17c262a12e632ecd401ba90185a5e"30],31"transactionsRoot": "0x929e7d778380cdc5c3468a4b3d3be0134c00c4ffaa6b5bea6c6aaa1a6a1a1b08",32"uncles": []33}34}