⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

author_pendingExtrinsics

Description

Returns all extrinsics currently waiting in the local transaction pool. Use this for diagnostics, custom mempool dashboards, or to detect stuck transactions.

Parameters

No parameters.

Returns

Array of SCALE-encoded extrinsics in the pool.

Request Example

{
"jsonrpc": "2.0",
"method": "author_pendingExtrinsics",
"params": [],
"id": 1
}

Response Example

{
"jsonrpc": "2.0",
"result": [
"0x280402000b60e2739f9901d4b3a0e3b88b7c25215926bbf7c733f5c31e69c0c8c4b4a86d6ec3f3f086e95d00"
],
"id": 1
}

Code Examples

JavaScript

const pool = await api.rpc.author.pendingExtrinsics();
console.log('Pending extrinsics:', pool.map((ext) => ext.method.section + '.' + ext.method.method));

Python

pending = substrate.rpc_request('author_pendingExtrinsics', [])["result"]
print('Pending:', len(pending))

Notes

  • The response reflects only the local node's pool. Other peers may have additional extrinsics.
  • Combine with author_removeExtrinsic (not exposed by default) or restart your node to clear invalid payloads if necessary.