⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

eth_uninstallFilter

Overview

Removes an existing filter.

Movement-Specific Considerations

  • Always uninstall filters when no longer needed to avoid resource leaks.

Parameters

NameTypeRequiredDescription
filterIdhexYesFilter identifier

Returns

Boolean indicating success.

Code Examples

cURL

curl -X POST https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1 \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_uninstallFilter","params":["0x1"],"id":1}'

Ethers.js v6

import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1');
const ok = await provider.send('eth_uninstallFilter', ['0x1']);
console.log(ok);

Web3.js

import Web3 from 'web3';
const web3 = new Web3('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1');
const ok = await web3.eth.uninstallFilter('0x1');
console.log(ok);

viem

import { createPublicClient, http } from 'viem';
const client = createPublicClient({ transport: http('https://api-movement-mainnet.n.dwellir.com/YOUR_API_KEY/v1') });
const ok = await client.request({ method: 'eth_uninstallFilter', params: ['0x1'] });
console.log(ok);