Docs

eth_getLogs - Blast RPC Method

Query event logs on Blast. Essential for indexing yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications on the only Ethereum L2 with native yield—4% for ETH and 5%+ for stablecoins automatically.

Returns an array of all logs matching a given filter object 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_getLogs method is essential for:

  • Event indexing - Track contract events for yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications
  • Token transfers - Monitor ERC20/ERC721 transfers
  • DeFi analytics - Track swaps, liquidity events, and more
  • Notification systems - Alert on specific on-chain events

Code Examples

Error Handling

Error CodeMessageDescription
-32005Query returned more than 10000 resultsReduce block range
-32602Invalid paramsInvalid filter parameters