eth_uninstallFilter
Uninstalls a filter on Boba Network. Should be called when no longer needed.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
filterId | QUANTITY | Yes | Filter ID to uninstall |
Request#
{
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": ["0x1"],
"id": 1
}
Returns#
| Type | Description |
|---|---|
Boolean | true if filter was found and uninstalled |
Code Examples#
- cURL
- JavaScript
curl -X POST https://api-boba-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-boba-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