eth_getLogs - Arbitrum RPC Method
Query event logs on Arbitrum. Essential for indexing high-volume DeFi (GMX, Uniswap, Aave), gaming, and cross-chain applications on Ethereum's leading Layer 2 with 46% L2 market share and $12B+ TVL.
Returns an array of all logs matching a given filter object on Arbitrum.
Why Arbitrum? Build on Ethereum's leading Layer 2 with 46% L2 market share and $12B+ TVL with full EVM compatibility, 1.5M daily transactions, and $3B+ DAO treasury for ecosystem growth.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for high-volume DeFi (GMX, Uniswap, Aave), gaming, and cross-chain 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 Arbitrum. Essential for reading contract state for high-volume DeFi (GMX, Uniswap, Aave), gaming, and cross-chain applications.
eth_newFilter
Create an event log filter on Arbitrum. Essential for event monitoring, contract activity tracking, and DeFi event streaming for high-volume DeFi (GMX, Uniswap, Aave), gaming, and cross-chain applications.