Docs

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 CodeMessageDescription
-32005Query returned more than 10000 resultsReduce block range
-32602Invalid paramsInvalid filter parameters