eth_getBlockByHash - zkSync RPC Method
Retrieve complete block data by block hash on zkSync Era. Essential for ZK developers, RWA tokenization teams, and builders launching custom L2/L3 chains building on Matter Labs' flagship zkEVM powering the Elastic Network of interoperable hyperchains.
Returns information about a block by hash on zkSync Era.
Why zkSync? Build on Matter Labs' flagship zkEVM powering the Elastic Network of interoperable hyperchains with ZK Stack modular framework, hyperchain interoperability, native account abstraction, and $1.9B in tokenized real-world assets.
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 RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi
- 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 zkSync Era. Perfect for ZK developers, RWA tokenization teams, and builders launching custom L2/L3 chains building on Matter Labs' flagship zkEVM powering the Elastic Network of interoperable hyperchains.
eth_getBlockReceipts
Return every transaction receipt in a block on zkSync Era. Useful for indexers, analytics pipelines, and event backfills across RWA tokenization ($1.9B, 25% market share), hyperchain deployment via ZK Stack, and cross-chain DeFi.