author_pendingExtrinsics
Description
Returns all extrinsics waiting in the transaction pool. Useful for monitoring congestion, replaying outstanding payloads, or debugging fee issues.
Parameters
This method does not require parameters.
Response Example (truncated)
{
"jsonrpc": "2.0",
"id": 1,
"result": [
"0x2523053d00025002000000000000f0ac0000000000…63155",
"…"
]
}
The array contains SCALE-encoded extrinsics in hex. Decode with polkadot.js or subxt for human-readable fields.
Code Examples
cURL
curl https://api-astar.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "author_pendingExtrinsics",
"params": [],
"id": 1
}'
JavaScript (polkadot.js)
const pending = await api.rpc.author.pendingExtrinsics();
console.log(`Pool size: ${pending.length}`);
Python (py-substrate-interface)
substrate = SubstrateInterface(url="wss://api-astar.n.dwellir.com/YOUR_API_KEY", ss58_format=5)
extrinsics = substrate.rpc_request('author_pendingExtrinsics', [])['result']
print(len(extrinsics))