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 Code | Message | Description |
|---|---|---|
| -32005 | Query returned more than 10000 results | Reduce block range |
| -32602 | Invalid params | Invalid filter parameters |
Related Methods
eth_newFilter- Create a filter for logseth_getFilterChanges- Poll filter for new logs
eth_call
Execute smart contract calls without creating transactions on Blast. Essential for reading contract state for yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications.
eth_newFilter
Create an event log filter on Blast. Essential for event monitoring, contract activity tracking, and DeFi event streaming for yield-generating dApps, DeFi protocols with built-in returns, and gas-subsidized applications.