eth_uninstallFilter - XDC Network RPC Method
Remove a filter on XDC Network. Essential for cleanup after event monitoring.
Uninstalls a filter on XDC Network. Should be called when no longer needed.
Request Parameters
Filter ID to uninstall
Response Body
true if filter was found and uninstalled
Code Examples
curl -X POST https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": ["0x1"],
"id": 1
}'import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-xdc-mainnet.n.dwellir.com/YOUR_API_KEY');
const success = await provider.send('eth_uninstallFilter', [filterId]);
console.log('Filter removed:', success);Related Methods
eth_newFilter- Create filtereth_getFilterChanges- Poll filter