eth_getLogs - Viction RPC Method
Query event logs on Viction. Essential for indexing gasless token operations, consumer-friendly dApps, and cost-free user onboarding on the zero-gas L1 blockchain making Web3 accessible with 150 masternodes and VRC25 gasless tokens.
Returns an array of all logs matching a given filter object on Viction.
Why Viction? Build on the zero-gas L1 blockchain making Web3 accessible with 150 masternodes and VRC25 gasless tokens with zero-gas transactions via TomoZ, VRC25 gasless token standard, 150 masternodes, and partnerships with LayerZero and MoonPay.
Use Cases
The eth_getLogs method is essential for:
- Event indexing - Track contract events for gasless token operations, consumer-friendly dApps, and cost-free user onboarding
- 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 Viction. Essential for reading contract state for gasless token operations, consumer-friendly dApps, and cost-free user onboarding.
eth_newFilter
Create an event log filter on Viction. Essential for event monitoring, contract activity tracking, and DeFi event streaming for gasless token operations, consumer-friendly dApps, and cost-free user onboarding.