Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 813 Bytes

File metadata and controls

38 lines (30 loc) · 813 Bytes
description 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.

txpool_status

Parameters

None

Return Value

Type Description
int The number of pending transactions.
int The number of queued transactions.

Example

{% code overflow="wrap" %}

// Request
curl -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"txpool_status","id":1}' https://kaia.blockpi.network/v1/rpc/your-api-key

// Result
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
        "pending": "0x7",
        "queued": "0x0"
    }
}

{% endcode %}