txpool
txpool_content
Returns the full contents of the transaction pool, grouped by sender address and nonce. Includes complete transaction objects for both pending and queued transactions.
Returns the full contents of the transaction pool, grouped by sender address and nonce. Includes complete transaction objects for both pending and queued transactions.
Parameters
| # | Type | Description |
|---|---|---|
| — | — | No parameters required. |
Returns
| Field | Type | Description |
|---|---|---|
pending | object | Map of sender addresses to maps of nonces to transaction objects. |
queued | object | Map of sender addresses to maps of nonces to transaction objects. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "txpool_content",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": {
"0x00000000000000000000000000000000000000ab": {
"12": {
"hash": "0x...",
"nonce": "0xc",
"from": "0x00000000000000000000000000000000000000ab",
"to": "0x...",
"value": "0x0",
"gas": "0x5208",
"gasPrice": "0x3b9aca00",
"input": "0x"
}
}
},
"queued": {}
}
}
TRY IT
Notes
- Warning: The response can be very large (megabytes) if the transaction pool is full. Use
txpool_statusfirst to check pool size. - Transactions are grouped by sender address, then by nonce.
- Pending transactions are ready for inclusion; queued transactions have nonce gaps or other issues.
- Consider using
txpool_inspectfor a more compact summary.
