Avalanche
Avalanche
Avalanche
免费套餐涵盖个人项目。按量付费,无需绑卡即可扩展。
eth_newPendingTransactionFilter creates a server-side filter on the Avalanche C-Chain (chain ID 43114, gas paid in AVAX) that captures transactions entering the node's mempool before they are mined. It returns a hex filter ID; polling that ID with eth_getFilterChanges returns the hashes of pending transactions seen since your last poll. This lets you observe in-flight C-Chain activity — useful for mempool monitoring and fee tracking — though with Snowman finality landing in roughly one to two seconds, transactions move from pending to confirmed quickly. Create the filter at https://avalanche.therpc.io/YOUR_API_KEY.
eth_getTransactionByHash.此方法不需要任何参数,传入空数组 [] 即可。
| 类型 | 描述 |
|---|---|
| string | Hex filter ID. When polled with eth_getFilterChanges, yields an array of new pending transaction hashes since the last poll. |
Try it live in the Avalanche playground.
| 错误码 | 错误信息 | 原因 |
|---|---|---|
-32000 | filter not found | Provider rejected filter creation or the filter limit was reached. |
eth_getTransactionByHash when you need sender, value, or calldata.eth_subscribe over a WebSocket connection rather than HTTP polling.