eth_uninstallFilter
Uninstalls a filter with given id on the Chiliz network. This removes the filter and stops monitoring for events.
Parameters
filterId
(string, required): The filter identifier returned frometh_newFilter
,eth_newBlockFilter
, oreth_newPendingTransactionFilter
Returns
Returns true
if the filter was successfully uninstalled, false
if the filter was not found.
Implementation Example
Examples
- cURL
- JavaScript
- Python
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_uninstallFilter",
"params": [
"0x1"
],
"id": 1
}'
const response = await fetch('https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
jsonrpc: '2.0',
method: 'eth_uninstallFilter',
params: ['0x1'],
id: 1
})
});
const data = await response.json();
console.log('Filter uninstalled:', data.result);
import requests
import json
url = 'https://api-chiliz-mainnet-archive.n.dwellir.com/YOUR_API_KEY'
headers = {'Content-Type': 'application/json'}
payload = {
"jsonrpc": "2.0",
"method": "eth_uninstallFilter",
"params": ["0x1"],
"id": 1
}
response = requests.post(url, headers=headers, data=json.dumps(payload))
data = response.json()
print('Filter uninstalled:', data['result'])
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Notes
- Always uninstall filters when you no longer need them to free up server resources
- Filters automatically expire after ~5 minutes of inactivity
- Returns
false
if the filter ID doesn't exist or was already uninstalled - Good practice to uninstall filters in error handling and cleanup code
Need help? Contact our support team or check the Chiliz documentation.