Avalanche
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
txpool_status returns the number of pending and queued transactions in an Avalanche C-Chain node's transaction pool, as two hex-encoded integers. Pending transactions are ready for inclusion in the next block; queued ones are waiting on a nonce gap or other condition. It is the lightweight counterpart to txpool_inspect — just the totals, no per-transaction detail — which makes it ideal for cheap, frequent polling of mempool depth. On the C-Chain, the EVM chain where AVAX pays for gas under Snowman/Avalanche consensus, these counts give a quick read on congestion. Send the request to https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a).
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| object | Object with `pending` (hex string) and `queued` (hex string) transaction counts. |
Try it live in the Avalanche playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace. |
txpool namespace is Geth-style. Avalanche C-Chain's coreth client is Geth-derived, but not every endpoint enables it, so a node without the namespace returns "method not found".