txpool_content
Returns every transaction in the node’s transaction pool, pending and queued, grouped by sender and nonce.
Geth reference · All supported methods
Parameters
No parameters. Send an empty params array.
Return value
An object with pending and queued fields. Each maps a sender address to its transactions, keyed by nonce.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"txpool_content","params":[]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": {
"0xc94770007dda54cF92009BFF0dE90c06F603a09f": {
"7": {
"from": "0xc94770007dda54cF92009BFF0dE90c06F603a09f",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"nonce": "0x7",
"gas": "0x5208",
"maxFeePerGas": "0x2540be400",
"maxPriorityFeePerGas": "0x3b9aca00",
"value": "0x9184e72a",
"input": "0x",
"hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b"
}
}
},
"queued": {}
}
}