Parameters
- hashstringREQUIRED
The hash (32 bytes) of the block
- transaction detail flagbooleanREQUIRED
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
(Optional) A string of the base fee encoded in hexadecimal format. Please note that this response field will not be included in a block requested before the EIP-1559 upgrade
- blobGasUsedstring
The amount of gas used by the blob
- dependencyHeightstring
The height of the dependency block referenced by this Zero block, encoded as a hexadecimal quantity.
- dependencyRootstring
The root hash of the dependency data referenced by this Zero block.
- difficultystring
The integer of the difficulty for this block encoded as a hexadecimal
- excessBlobGasstring
The excess gas used by the blob
- extraDatastring
The “extra data” field of this block
- gasLimitstring
The maximum gas allowed in this block encoded as a hexadecimal
- gasUsedstring
The total used gas by all transactions in this block encoded as a hexadecimal
- hashstring
The block hash of the requested block. null if pending
- 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
- parentBeaconBlockRootstring
The root of the parent beacon block in hexadecimal format
- parentHashstring
The hash of the parent block
- parentStateRootstring
The state root of the parent block, before this block's transactions are applied.
- receiptsRootstring
The root of the receipts trie of the block
- requestsHashstring
The hash of the requests in the block. Present after the Pectra upgrade
- sha3Unclesstring
The SHA3 of the uncles data in the block
- sizestring
The size of this 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
- transactionsstring | object
With the full transaction objects flag set to false (the default), an array of transaction hashes. When true, an array of transaction objects.
- typestring
The transaction type
- chainIdstring
(Conditional) The chain ID of the transaction, encoded as hexadecimal
- noncestring
The number of transactions made by the sender prior to this one encoded as hexadecimal
- gasPricestring
(Conditional) The gas price provided by the sender in wei, encoded as hexadecimal
- maxFeePerGasstring
(Type 2) Maximum total fee per gas, encoded as a hexadecimal quantity.
- maxPriorityFeePerGasstring
(Type 2) Maximum priority fee per gas, encoded as a hexadecimal quantity.
- gasstring
The gas provided by the sender, encoded as hexadecimal
- tostring
The address of the receiver. null when it's a contract creation transaction
- valuestring
The value transferred in wei encoded as hexadecimal
- accessListarray
(Type 2) Addresses and storage keys the transaction can access.
- inputstring
The data sent along with the transaction
- rstring
The R field of the signature
- sstring
The S field of the signature
- yParitystring
(Type 2) Parity of the transaction signature, encoded as a hexadecimal quantity.
- vstring
The standardized V field of the signature
- hashstring
The hash of the transaction
- blockHashstring
The hash of the block where this log was in. null when it's a pending log
- blockNumberstring
The block number where this log was in. null when it's a pending log
- transactionIndexstring
The integer of the transaction's index position that the log was created from. null when it's a pending log
- fromstring
The address of the sender
- transactionsRootstring
The root of the transaction trie of the block
- unclesarray
An array of uncle hashes
- withdrawalsarray
A withdrawals object contains information about withdrawals made by validators. Please note that this field will not be included in a block requested before the EIP-4895 upgrade
- withdrawalsRootstring
The Merkle root of withdrawal data. Also, please note that this field will not be included in a block requested before the EIP-4895 upgrade
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x7",6"blobGasUsed": "0x0",7"dependencyHeight": "0x0",8"dependencyRoot": "0xbf9249c2cbe81ff02ea2d20a8ab2e063c0e1643d67b2e7fff0ee28ffcac81673",9"difficulty": "0x0",10"excessBlobGas": "0x0",11"extraData": "0x",12"gasLimit": "0x3fe56c0",13"gasUsed": "0x5208",14"hash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",15"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",16"miner": "0x0000000000000000000000000000000000000000",17"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",18"nonce": "0x0000000000000000",19"number": "0x1",20"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",21"parentHash": "0xd6156febaf48fa02d7d95e698744c35f270ef93cce67b4b5976a63db372c03f1",22"parentStateRoot": "0x6417262f1b819c440aee7abe6298a25c2c1c17bbe84768a24e05962daec69f95",23"receiptsRoot": "0x193c29193ffe6ac3ccc5708de59b43c4e0e8f320726c8f623b9d5393cf6cbf56",24"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",25"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",26"size": "0x316",27"stateRoot": "0xa40cc7dc1a16cc479fae34ca26411bcbfd26a06558fd58c0d4c97d90a10464ff",28"timestamp": "0x6afbdf43",29"transactions": [30"0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf"31],32"transactionsRoot": "0x44f4b62b594f0b4df396531118e4b2ea7e96bc9f992d46b20aa1d9244409bd2d",33"uncles": [],34"withdrawals": [],35"withdrawalsRoot": "0x61698e04867f7040ff0eb975461e3cb43ce69bdfd2c303056acb7b8533f760ff"36}37}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": "0x7",6"blobGasUsed": "0x0",7"dependencyHeight": "0x0",8"dependencyRoot": "0xbf9249c2cbe81ff02ea2d20a8ab2e063c0e1643d67b2e7fff0ee28ffcac81673",9"difficulty": "0x0",10"excessBlobGas": "0x0",11"extraData": "0x",12"gasLimit": "0x3fe56c0",13"gasUsed": "0x5208",14"hash": "0x2d763c650659c5bbf26036448657667c8b32ebc2d18170c0320efc2895bb7436",15"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",16"miner": "0x0000000000000000000000000000000000000000",17"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",18"nonce": "0x0000000000000000",19"number": "0x1",20"parentBeaconBlockRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",21"parentHash": "0xd6156febaf48fa02d7d95e698744c35f270ef93cce67b4b5976a63db372c03f1",22"parentStateRoot": "0x6417262f1b819c440aee7abe6298a25c2c1c17bbe84768a24e05962daec69f95",23"receiptsRoot": "0x193c29193ffe6ac3ccc5708de59b43c4e0e8f320726c8f623b9d5393cf6cbf56",24"requestsHash": "0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",25"sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",26"size": "0x316",27"stateRoot": "0xa40cc7dc1a16cc479fae34ca26411bcbfd26a06558fd58c0d4c97d90a10464ff",28"timestamp": "0x6afbdf43",29"transactions": [30"0xf5147a7a6a529e960da4d43391ef148ed914e7eca5400fbb2d4d153d038fcebf"31],32"transactionsRoot": "0x44f4b62b594f0b4df396531118e4b2ea7e96bc9f992d46b20aa1d9244409bd2d",33"uncles": [],34"withdrawals": [],35"withdrawalsRoot": "0x61698e04867f7040ff0eb975461e3cb43ce69bdfd2c303056acb7b8533f760ff"36}37}