Updated on 2023-12-15 GMT+08:00

txpool_status

Introduction

This API returns the number of transactions in pending and queued states. It consumes 120 CUs.

Parameter Description

This method does not accept any parameters.

Return Value

Object: A transaction object with the following fields:
  • pending: the total number of pending transactions in the transaction pool (txpool), represented in hexadecimal format.
  • queued: the total number of queued transactions in the txpool, represented in hexadecimal format.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"txpool_status","params":[],"id":1,"jsonrpc":"2.0"}'