eth_getLogs - Mantle RPC Method
Query event logs on Mantle. Essential for indexing liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies on the world's largest ZK rollup by TVL with $2.5B+ secured and deep Bybit integration.
Returns an array of all logs matching a given filter object on Mantle.
Why Mantle? Build on the world's largest ZK rollup by TVL with $2.5B+ secured and deep Bybit integration with near-instant ZK finality via OP Succinct, $6.2B treasury backing, mETH liquid staking, and 25% Bybit trading fee discounts.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies
- 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 Mantle. Essential for reading contract state for liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies.
eth_newFilter
Create an event log filter on Mantle. Essential for event monitoring, contract activity tracking, and DeFi event streaming for liquid staking (mETH $1.87B TVL), institutional DeFi via Bybit, and yield optimization strategies.