Polygon
هل أنت مستعد لاستدعاء هذا في الإنتاج؟
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
Polygon
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
txpool_inspect returns a human-readable text summary of every transaction sitting in a Polygon PoS node's transaction pool, split into pending and queued and organised by sender address and nonce. Each entry condenses a transaction into a short string showing recipient, MATIC value, gas, and gas price — handy for eyeballing mempool state without parsing full transaction objects. On Polygon, where low fees and ~2-second blocks keep the mempool churning, it is a quick way to see what is in flight. Send the request to the Polygon mainnet endpoint at https://polygon.therpc.io/YOUR_API_KEY (chain ID 137, 0x89).
هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| object | Object with `pending` and `queued` keys. Each is a map of sender address → nonce → human-readable string `"<to>: <value> wei + <gas> gas × <gasPrice> wei"`. |
Try it live in the Polygon playground.
| الكود | الرسالة | السبب |
|---|---|---|
-32601 | method not found | The node does not support the txpool namespace (e.g. non-Geth clients may omit it). |
txpool namespace is a Geth-family feature. Since Polygon's Bor client is Geth-based it is usually available, but not every node or managed endpoint exposes it, so handle a "method not found" response.txpool_content instead.txpool_status, which returns lightweight pending and queued counts.