Pool
This page describes APIs that access the transaction pool.

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}'

> pool.getPoolSize()

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

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

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

> pool.getAll()

Array<Transaction>
Copy link
On this page
pool_getSize
pool_getAll