Docs

eth_getBlockByNumber - Blast RPC Method

Retrieve complete block data by block number on Blast. Perfect for DeFi developers, yield protocol builders, and teams building passive-income dApps building on the only Ethereum L2 with native yield—4% for ETH and 5%+ for stablecoins automatically.

Returns information about a block by block number on Blast.

Why Blast? Build on the only Ethereum L2 with native yield—4% for ETH and 5%+ for stablecoins automatically with $2.5B+ TVL, auto-rebasing ETH and USDB, gas revenue sharing for developers, and Blur-backed ecosystem.

Use Cases

The eth_getBlockByNumber method is essential for:

  • Block explorers - Display complete block information
  • Transaction indexers - Process all transactions in a block
  • Analytics platforms - Analyze blockchain data for yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications
  • Timestamp verification - Get block timestamps for time-based logic

Code Examples

Error Handling

Error CodeMessageDescription
-32602Invalid paramsInvalid block number or parameter format
-32000Block not foundBlock does not exist