Links

Pool

This page describes APIs that access the transaction pool.

pool_getSize

Get the current size information of the transaction pool.
Parameters: None
Curl Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"pool_getPoolSize", "id":21}'

Console Example

> pool.getPoolSize()

Returns:

Object
Field
Type
Description
byteSize
Integer
The total size of all transactions in the pool.
numTxs
Integer
The number of transactions in the pool.

Output:

{
"id": 21,
"jsonrpc": "2.0",
"result": {
"byteSize": 708,
"numTxs": 3
}
}

pool_getAll

Get all the transactions in the pool.
Parameters: None
Curl Example:
curl -X POST --data '{"jsonrpc":"2.0","method":"pool_getAll", "id":21}'

Console Example

> pool.getAll()

Returns:

Array<Transaction>