eth_getBlockByHash - Linea RPC Method
Retrieve complete block data by block hash on Linea. Essential for enterprise developers, DeFi builders, and teams seeking Consensys ecosystem integration building on Consensys-backed zkEVM L2 with $1B+ TVL and 807% growth in 2025.
Returns information about a block by hash on Linea.
Why Linea? Build on Consensys-backed zkEVM L2 with $1B+ TVL and 807% growth in 2025 with 15-30x lower fees than Ethereum mainnet, 6,200 TPS throughput, SWIFT integration with 12+ institutions, and $725M Consensys backing.
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 enterprise DeFi (Aave, Renzo), institutional cross-border payments via SWIFT pilots, and zkEVM-native applications
- Deterministic queries - Get consistent block data regardless of chain state
Code Examples
Error Handling
| Error Code | Message | Description |
|---|---|---|
| -32602 | Invalid params | Invalid block hash format |
| -32000 | Block not found | Block with this hash does not exist |
Related Methods
eth_getBlockByNumber- Get block by numbereth_blockNumber- Get latest block number
eth_getBlockByNumber
Retrieve complete block data by block number on Linea. Perfect for enterprise developers, DeFi builders, and teams seeking Consensys ecosystem integration building on Consensys-backed zkEVM L2 with $1B+ TVL and 807% growth in 2025.
eth_getBlockReceipts
Return every transaction receipt in a block on Linea. Useful for indexers, analytics pipelines, and event backfills across enterprise DeFi (Aave, Renzo), institutional cross-border payments via SWIFT pilots, and zkEVM-native applications.