Skip to main content

txpool_content

Returns an object containing all pending and queued transactions in the pool, grouped by origin address and sorted by nonce. Pending transactions are ready for inclusion in the next block(s). Queued transactions have nonce gaps and are scheduled for future execution.

Returns the contents of the transaction pool.

Parameters (by position)

This method does not accept any parameters.

Result

Transaction pool content object

All pending and queued transactions in the pool, grouped by address and nonce.


Show Transaction pool content object

Transaction pool content fields

  • pending object required

    Transactions ready for inclusion in the next block(s)


    Show pending object

    pending fields

    Transactions ready for inclusion in the next block(s)

  • queued object required

    Transactions with nonce gaps awaiting preceding transactions before they can be executed


    Show queued object

    queued fields

    Transactions with nonce gaps awaiting preceding transactions before they can be executed

  • additionalProperties true


Examples

txpool_content example

Request

{
"params": []
}

Response

{
"pending": {
"0x0216d5032f356960cd3749c31ab34eeff21b3395": {
"806": {
"blockHash": null,
"blockNumber": null,
"from": "0x0216d5032f356960cd3749c31ab34eeff21b3395",
"gas": "0x5208",
"gasPrice": "0xba43b7400",
"hash": "0xaf953a2d01f55cfe080c0c94150a60105e8ac3d51153058a1f03dd239dd08586",
"input": "0x",
"nonce": "0x326",
"to": "0x7f69a91a3cf4be60020fb58b893b7cbb65376db8",
"transactionIndex": null,
"value": "0x19a99f0cf456000"
}
}
},
"queued": {
"0x0216d5032f356960cd3749c31ab34eeff21b3395": {
"808": {
"blockHash": null,
"blockNumber": null,
"from": "0x0216d5032f356960cd3749c31ab34eeff21b3395",
"gas": "0x5208",
"gasPrice": "0xba43b7400",
"hash": "0x593f723c6f7abc7878c4927d2f1a0e6c5a6c0b4c9f5a7b2e3d4c5f6a7b8c9d0e",
"input": "0x",
"nonce": "0x328",
"to": "0x7f69a91a3cf4be60020fb58b893b7cbb65376db8",
"transactionIndex": null,
"value": "0x19a99f0cf456000"
}
}
}
}