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:
1
curl -X POST --data '{"jsonrpc":"2.0","method":"pool_getPoolSize", "id":21}'
Copied!

Console Example

1
> pool.getPoolSize()
Copied!

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:

1
{
2
"id": 21,
3
"jsonrpc": "2.0",
4
"result": {
5
"byteSize": 708,
6
"numTxs": 3
7
}
8
}
Copied!

pool_getAll

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

Console Example

1
> pool.getAll()
Copied!

Returns:

Array<Transaction>
Copy link