Docs

eth_getBlockByHash - Hyperliquid RPC Method

Retrieve complete block data by block hash on Hyperliquid. Essential for derivatives traders, DeFi protocols, and teams building high-frequency trading applications building on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data.

Returns information about a block by hash on Hyperliquid.

Why Hyperliquid? Build on the trading-focused EVM and HyperCore ecosystem built for onchain perpetuals and market data with HyperCore market structure, sub-second finality, and direct access to trading-focused data services.

Use Cases

The eth_getBlockByHash method is essential for:

  • Block verification - Verify block data using its unique hash
  • Chain reorganization handling - Track blocks during reorgs
  • Cross-chain bridges - Verify block finality for perpetual futures trading, onchain order books, and institutional-grade derivatives
  • Deterministic queries - Get consistent block data regardless of chain state

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid block hash format
-32000Block not foundBlock with this hash does not exist