Docs
Supported ChainsXDC NetworkJSON-RPC APISmart Contract Methods

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

Request
filterIdQUANTITY

Filter ID to uninstall

Response Body

Response
resultBoolean

true if filter was found and uninstalled

Code Examples

Bash
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
  }'
JavaScript
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);

On this page