txpool_status

The status inspection property can be queried for the number of transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only. The result is an object with two fields pending and queued, each of which is a counter representing the number of transactions in that particular state.

Parameters

  • No parameters are needed.
curl https://ethereum-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"txpool_status",
    "params":[]
}'

Returns

  • OBJECT - with following fields:
    • pending - Total number of pending transactions in the pool, represented in hexadecimal format.
    • queued - Total number of queued transactions in the pool, represented in hexadecimal format.
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": {
    "pending": "0x1419",
    "queued": "0x3e4"
  }
}

Try Yourself

Language
Click Try It! to start a request and see the response here!