Skip to main content

author_pendingExtrinsics - JSON-RPC Method

Description#

Returns the list of pending extrinsics currently waiting in the transaction pool (mempool) on the Acala network. This method provides visibility into transactions that have been submitted to the network but not yet included in a finalized block. The transaction pool maintains a queue of valid extrinsics that validators will attempt to include in upcoming blocks based on priority and validity rules.

Request Example#

curl -s https://api-acala.n.dwellir.com/YOUR_API_KEY -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"author_pendingExtrinsics","params":[]}'

Parameters#

This method accepts no parameters.

Response Format#

The response returns an array of SCALE-encoded extrinsics in hexadecimal format. Each entry represents a pending transaction with all its associated data including the sender, call data, signature, and nonce information.

Use Cases#

  • Transaction Monitoring: Track the status of recently submitted transactions before block inclusion
  • Mempool Analysis: Analyze network congestion by examining the number and types of pending transactions
  • Debugging: Troubleshoot transaction submission issues by verifying extrinsic presence in the pool
  • Priority Estimation: Understand current network activity to estimate transaction priority requirements
  • Application State: Build responsive user interfaces that show pending transaction status

Best Practices#

Always decode the returned SCALE-encoded extrinsics using a proper Substrate client library like Polkadot.js or SubXT. The raw hexadecimal data requires proper type information from the runtime metadata to be interpreted correctly. Consider implementing retry logic with exponential backoff when querying this endpoint repeatedly, as the pool state changes rapidly with each new block.