Docs

eth_getLogs - IoTeX RPC Method

Query event logs on IoTeX. Essential for indexing decentralized physical infrastructure (DePIN), IoT device identity (ioID), and AI-verified real-world data on the leading DePIN infrastructure blockchain powering 130+ applications in the $27B+ DePIN ecosystem.

Returns an array of all logs matching a given filter object on IoTeX.

Why IoTeX? Build on the leading DePIN infrastructure blockchain powering 130+ applications in the $27B+ DePIN ecosystem with W3bstream offchain compute, Quicksilver AI data verification, Vodafone partnership for 5M+ cell tower integration, and ioID device identity.

Use Cases

The eth_getLogs method is essential for:

  • Event indexing - Track contract events for decentralized physical infrastructure (DePIN), IoT device identity (ioID), and AI-verified real-world data
  • 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