Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
eth_uninstallFilter removes a server-side filter from an Avalanche C-Chain node by its ID, freeing the resources the node held to track it. It works for any filter type created with eth_newFilter, eth_newBlockFilter, or eth_newPendingTransactionFilter. Because each open filter keeps state on the node — buffering matches between your eth_getFilterChanges polls — uninstalling filters you no longer need keeps your usage lean on a chain as active as the C-Chain, where AVAX-settled DeFi traffic generates a steady stream of events. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) with the filter ID you want to drop.
| # | الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|---|
| 1 | filterId | string | نعم | The hex filter ID to remove. |
| النوع | الوصف |
|---|---|
| boolean | `true` if the filter was found and removed. `false` if it did not exist (already expired or never created). |
Try it live in the Avalanche playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32602 | invalid argument | The filter ID is not a valid hex string. |
false return is not an error. It simply means the C-Chain node could not find that filter ID — typically because the filter already expired or was never created. Treat it as a no-op rather than a failure.eth_uninstallFilter is better practice than relying on timeout, especially for short-lived polling jobs.المعاملات
The hex filter ID to remove.