pulsechain.box
eth

eth_getBlockByHash

Returns information about a block by its hash.

Returns information about a block by its hash.

Parameters

#TypeDescription
1stringThe hash of the block (32 bytes).
2boolIf true, returns full transaction objects; if false, returns only transaction hashes.

Returns

object | null -- A block object, or null if no block was found. The object contains the same fields as eth_getBlockByNumber:

FieldTypeDescription
numberstringBlock number (hex)
hashstringBlock hash (32 bytes)
parentHashstringHash of the parent block
noncestringAlways "0x0000000000000000" on PoS
sha3UnclesstringSHA3 of the uncles data
logsBloomstringBloom filter for the logs (256 bytes)
transactionsRootstringRoot of the transaction trie
stateRootstringRoot of the state trie
receiptsRootstringRoot of the receipts trie
minerstringAddress of the block proposer
difficultystringAlways "0x0" on PoS
totalDifficultystringCumulative difficulty
extraDatastringExtra data field
sizestringBlock size in bytes (hex)
gasLimitstringMaximum gas allowed in the block (hex)
gasUsedstringTotal gas used by all transactions (hex)
timestampstringUnix timestamp of the block (hex)
transactionsarrayTransaction hashes or full transaction objects
unclesarrayAlways empty on PoS
baseFeePerGasstringBase fee per gas (EIP-1559, hex)

Example

curl -s -X POST https://rpc.pulsechain.box \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getBlockByHash",
    "params": ["0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6", false],
    "id": 1
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "number": "0x1",
    "hash": "0x88e96d4537bea4d9c05d12549907b32561d3bf31f45aae734cdc119f13406cb6",
    "parentHash": "0x3b8a456c4a2b647bb4acb79e8044e1e7bfe7c7e718bac956dea9956a31c5ec3b",
    "timestamp": "0x645a0468",
    "gasLimit": "0x1c9c380",
    "gasUsed": "0x0",
    "miner": "0x0000000000000000000000000000000000000000",
    "baseFeePerGas": "0x3b9aca00",
    "transactions": [],
    "..."
  }
}
TRY IT

Notes

  • This method is functionally identical to eth_getBlockByNumber but uses the block hash as the identifier instead of the block number.
  • Block hashes are unique identifiers and are preferred when you need to reference a specific block unambiguously, especially during chain reorganizations.
  • Returns null if no block with the given hash exists.
  • Set the second parameter to false for transaction hashes only (faster) or true for full transaction objects.
  • The example uses the hash of block 1.
Copyright © 2026 AvecdrA. Made with love.