txpool_status
Returns how many transactions are in the node’s transaction pool, pending and queued.
Geth reference · All supported methods
Parameters
No parameters. Send an empty params array.
Return value
An object with pending and queued counts as hexadecimal quantities.
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_status","params":[]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"pending": "0x2a",
"queued": "0x7"
}
}