author_pendingExtrinsics
Description
Returns the list of pending extrinsics in the transaction pool.
When to use it:
- Diagnose stuck or delayed transactions and monitor mempool pressure.
- Build dashboards showing pending activity before inclusion.
- Implement backoff/retry or fee bumping strategies based on pool size.
Notes
- Mutating author_* methods (e.g.,
author_insertKey
,author_rotateKeys
,author_submitExtrinsic
) require node permissions and are not available on shared public RPC. Use a self-hosted node for those.
Code Examples
- cURL
- Python
- JavaScript
curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
+ -H 'Content-Type: application/json' \
+ -d '{"jsonrpc":"2.0","method":"author_pendingExtrinsics","params":[],"id":1}'
import requests, json
url = 'https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY'
headers = {'Content-Type': 'application/json'}
payload = {
"jsonrpc": "2.0",
"method": "author_pendingExtrinsics",
"params": [],
"id": 1
}
res = requests.post(url, headers=headers, data=json.dumps(payload))
print(res.json()['result'])
const res = await fetch('https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"jsonrpc": "2.0",
"method": "author_pendingExtrinsics",
"params": [],
"id": 1
})
});
const data = await res.json();
console.log(data.result);