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 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 IoTeX. Essential for reading contract state for decentralized physical infrastructure (DePIN), IoT device identity (ioID), and AI-verified real-world data.
eth_newFilter
Create an event log filter on IoTeX. Essential for event monitoring, contract activity tracking, and DeFi event streaming for decentralized physical infrastructure (DePIN), IoT device identity (ioID), and AI-verified real-world data.