eth_getLogs - Manta RPC Method
Query event logs on Manta Pacific. Essential for indexing ZK-enabled DeFi, private identity verification, and modular ZK applications via Universal Circuits on the modular ZK L2 with Celestia DA delivering the lowest fees for 200+ dApps.
Returns an array of all logs matching a given filter object on Manta Pacific.
Why Manta? Build on the modular ZK L2 with Celestia DA delivering the lowest fees for 200+ dApps with first L2 on Celestia mainnet, ZK-as-a-Service via Universal Circuits, Polygon CDK integration, and modular OP Stack architecture.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for ZK-enabled DeFi, private identity verification, and modular ZK applications via Universal Circuits
- 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 Manta Pacific. Essential for reading contract state for ZK-enabled DeFi, private identity verification, and modular ZK applications via Universal Circuits.
eth_newFilter
Create an event log filter on Manta Pacific. Essential for event monitoring, contract activity tracking, and DeFi event streaming for ZK-enabled DeFi, private identity verification, and modular ZK applications via Universal Circuits.