/node/transaction-pool - Polkadot

This endpoint returns the extrinsics currently in the node's transaction pool.

On GetBlock's unified endpoint, Asset Hub is the default network. To call this endpoint against the Relaychain, add an /rc prefix to the path (for example, /rc/node/transaction-pool).

Endpoint

GET /node/transaction-pool

Query Parameters

ParameterTypeRequiredDescription
includeFeebooleanNoInclude the partial fee for each pooled extrinsic

Request

bashcurl --location 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/transaction-pool'

example.js

javascriptconst response = await fetch('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/transaction-pool');
const data = await response.json();
console.log(data);

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/node/transaction-pool')
print(response.json())

Response

json{
  "pool": [
    {
      "hash": "0x8e6c1c...",
      "encodedExtrinsic": "0x4d0284..."
    }
  ]
}

Response Fields

FieldTypeDescription
poolarrayPending extrinsics in the pool
pool[].hashstringExtrinsic hash
pool[].encodedExtrinsicstringSCALE-encoded extrinsic, hex-encoded

Use Cases

  • Mempool Views: Inspect pending transactions
  • Fee Markets: Observe pending demand for block space
  • Resubmission: Detect whether a transaction is still pending
  • Monitoring: Track pool depth