eth_getFilterChanges - Chiliz RPC Method
Poll filter for new events on Chiliz. Essential for event monitoring for sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets.
Polling method for a filter on Chiliz, returns an array of logs since last poll.
Use Cases
- Event streaming - Get new events incrementally
- Real-time monitoring - Track contract activity for sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets
- Efficient indexing - Process only new events
Request Parameters
Filter ID from eth_newFilter
Response Body
Code Examples
curl -X POST https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getFilterChanges",
"params": ["0x1"],
"id": 1
}'import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY');
// Poll loop
async function pollFilter(filterId, interval = 2000) {
while (true) {
const changes = await provider.send('eth_getFilterChanges', [filterId]);
if (changes.length > 0) {
console.log('New events:', changes);
}
await new Promise(r => setTimeout(r, interval));
}
}Related Methods
eth_newFilter- Create filtereth_uninstallFilter- Remove filter
eth_newFilter - Chiliz RPC Method
Create event log filter on Chiliz. Essential for monitoring events for sports fan tokens (Socios.com), club voting rights, gamified fan experiences, and tokenized sports assets.
eth_getFilterLogs - Chiliz RPC Method
Get all logs for a filter on Chiliz. Essential for historical event queries.