eth_getBlockByHashfull - Ethereum

eth_getBlockByHashfull. Returns information about a block by block hash

eth_getBlockByHashfull - ethereum [Value: 60CU]
Returns information about a block by block hash.
Use cases

Use cases

  • Retrieve full block details using block hash
  • Get transactions and metadata for a specific block
  • Analyze block data for blockchain synchronization checks
Constraints

Constraints

  • Requires valid block hash as input parameter
  • Full transaction data increases response size significantly
  • Node must be fully synchronized with the blockchain
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://eth.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getBlockByHash",
  "params": [
    true,
    true
  ]
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "difficulty": "0x4ea3f27bc",
    "extraData": "0x65746865726d696e652d6575312d32",
    "gasLimit": "0x47e7c4",
    "gasUsed": "0x6384",
    "hash": "0x5bad55fbd7e0f20eac95f45f55f997216de10aaf176314c236b0c3c93c5d1f17",
    "logsBloom": "0x0",
    "miner": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5",
    "mixHash": "0x75b1f48901cf1d37ad43c2b29eafeb1f3ae5cf5c5d55b1b3be6b2be4a25d6ec6",
    "nonce": "0x539bd4979b50162d",
    "number": "0x1b4",
    "parentHash": "0x8e3d7ea52a14b9d773c37d67e2a4b8e6a12573c3d60a1cd1a58455d3008d1c9d",
    "receiptsRoot": "0xbcdfc35b86bedf72e283106f1f9a03c8d99a6de2b1cba6b01ff3e78e924e05c8",
    "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad0d4e8eeb004cfe8dec7d1f3469a7f5f",
    "size": "0x220",
    "stateRoot": "0x7d00dcd0e0d14e6f7d9dc57116d0e5f76b0abdc716a1d7e6b4df87eae7795b7a",
    "timestamp": "0x55ba467c",
    "totalDifficulty": "0x78ed983323d",
    "transactions": [
      {
        "blockHash": "0x5bad55fbd7e0f20eac95f45f55f997216de10aaf176314c236b0c3c93c5d1f17",
        "blockNumber": "0x1b4",
        "from": "0x5cb2045c43d14a5f5e5f1ea60c5b02e0a93032cf",
        "gas": "0x7d3c",
        "gasPrice": "0xba43b7400",
        "hash": "0x1a85165ac88f73b7a290104f614cf08d8b4f3e193f41f209c3716d9c237139f5",
        "input": "0x",
        "nonce": "0x15",
        "to": "0x3535353535353535353535353535353535353535",
        "transactionIndex": "0x0",
        "value": "0x1bc16d674ec80000",
        "v": "0x1c",
        "r": "0x5e1d3a76fbf824220e68236e2d51cb98f349a5a6e4f43e3f471f5d0421d4aee2",
        "s": "0x5e1d3a76fbf824220e68236e2d51cb98f349a5a6e4f43e3f471f5d0421d4aee2"
      }
      // Additional transaction objects can be included here
    ],
    "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
    "uncles": []
  }
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
hashstring
The hash (32 bytes) of the block.
transaction_detail_flagboolean
It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions.

Response

200
Returns a block object with the following fields, or null when no block was found.

Response params

object
idinteger
jsonrpcstring
resultobject
A block object with the following fields, or null when no block was found.
object
noncestring
8 Bytes - hash of the generated proof-of-work. null when its pending block.
hashstring
32 Bytes - hash of the block. null when its pending block.
baseFeePerGasstring
the base fee, in wei, that is charged for each unit of gas used, during the execution of the given block, encoded as a hexadecimal.
numberstring
the block number. null when its pending block.
parentHashstring
32 Bytes - hash of the parent block.
sha3Unclesstring
32 Bytes - SHA3 of the uncles data in the block.
logsBloomstring
256 Bytes - the bloom filter for the logs of the block. null when its pending block.
transactionsRootstring
32 Bytes - the root of the transaction trie of the block.
stateRootstring
32 Bytes - the root of the final state trie of the block.
receiptsRootstring
32 Bytes - the root of the receipts trie of the block.
minerstring
20 Bytes - the address of the beneficiary to whom the mining rewards were given.
difficultystring
Integer of the difficulty for this block.
totalDifficultystring
Integer of the total difficulty of the chain until this block.
extraDatastring
The "extra data" field of this block.
sizestring
Integer the size of this block in bytes.
gasLimitstring
The maximum gas allowed in this block.
gasUsedstring
The total used gas by all transactions in this block.
timestampstring
The unix timestamp for when the block was collated.
transactionsarray
An array of transaction objects - please see eth_getTransactionByHash for exact shape
object
blockHashstring
The number of the block where the given transaction was included.
blockNumberstring
The block number where this log was in. null when its pending. null when its pending log.
transactionIndexstring
Integer of the transactions index position log was created from. null when its pending log.
noncestring
The number of transactions made by the sender prior to this one.
hashstring
32 Bytes - hash of the transaction.
fromstring
20 Bytes - address of the sender.
gasstring
Gas provided by the sender.
gasPricestring
Gas price provided by the sender in Wei.
inputstring
The data send along with the transaction.
rstring
ECDSA signature r.
sstring
ECDSA signature r.
tostring
20 Bytes - address of the receiver. null when it's a contract creation transaction.
vstring
ECDSA recovery id.
valuestring
Value transferred in Wei.
unclesarray_of_strings
Array of uncle hashes.