eth_getLogs - World Chain RPC Method
Query event logs on World Chain. Essential for indexing human-verified DeFi, identity-gated applications, bot-resistant services on the human-first Ethereum L2 powered by World ID.
Returns an array of all logs matching a given filter object on World Chain.
Why World Chain? Build on the human-first Ethereum L2 powered by World ID with World ID integration for free gas and priority blockspace.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for human-verified DeFi, identity-gated applications, bot-resistant services
- 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 World Chain. Essential for reading contract state for human-verified DeFi, identity-gated applications, bot-resistant services.
eth_newFilter
Create an event log filter on World Chain. Essential for event monitoring, contract activity tracking, and DeFi event streaming for human-verified DeFi, identity-gated applications, bot-resistant services.