eth_getLogs - Moonriver RPC Method
Query event logs on Moonriver. Essential for indexing production-grade dApp testing, early feature deployment, and Kusama-based EVM applications on the Moonbeam canary network on Kusama for real-world testing of EVM dApps.
Returns an array of all logs matching a given filter object on Moonriver.
Why Moonriver? Build on the Moonbeam canary network on Kusama for real-world testing of EVM dApps with Moonbeam code ships here first, full EVM compatibility on Kusama, 80% fee burn mechanism, and XCM cross-chain messaging.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications
- 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 Moonriver. Essential for reading contract state for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications.
eth_newFilter
Create an event log filter on Moonriver. Essential for event monitoring, contract activity tracking, and DeFi event streaming for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications.