eth_newFilter - Viction RPC Method
Create event log filter on Viction. Essential for monitoring events for gasless token operations, consumer-friendly dApps, and cost-free user onboarding.
Creates a filter object on Viction to notify when state changes (logs).
Use Cases
- Event monitoring - Subscribe to contract events
- Real-time updates - Track events for gasless token operations, consumer-friendly dApps, and cost-free user onboarding
- Indexing - Build event indexes incrementally
Request Parameters
Starting block
Ending block
Contract address(es)
Topic filters
Response Body
Filter ID
Code Examples
curl -X POST https://api-viction-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_newFilter",
"params": [{
"fromBlock": "latest",
"address": "0xC054751BdBD24Ae713BA3Dc9Bd9434aBe2abc1ce"
}],
"id": 1
}'import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-viction-mainnet.n.dwellir.com/YOUR_API_KEY');
// Create filter
const filterId = await provider.send('eth_newFilter', [{
fromBlock: 'latest',
address: '0xC054751BdBD24Ae713BA3Dc9Bd9434aBe2abc1ce',
topics: ['0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef']
}]);
// Poll for changes
const changes = await provider.send('eth_getFilterChanges', [filterId]);
console.log('New events:', changes);
// Cleanup
await provider.send('eth_uninstallFilter', [filterId]);Related Methods
eth_getFilterChanges- Poll filter for changeseth_uninstallFilter- Remove filtereth_getLogs- Direct log query
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.
eth_getFilterChanges - Viction RPC Method
Poll filter for new events on Viction. Essential for event monitoring for gasless token operations, consumer-friendly dApps, and cost-free user onboarding.