Displays the number of elements in the mempool for a given network.
CLI Example
Command syntax:
mempool count
-net <net_name>
[-chain <chain_name>]
Options:
-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-chain - name of the chain (optional)
Example:
Command:
cellframe-node-cli mempool count
-net riemann
-chain main
Response:
net: riemann
chains:
name: main
count: 1
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"mempool", "params":["mempool;count;-net;riemann;-chain;main"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"net": "riemann",
"chains": [
{
"name": "main",
"count": 1
}
]
}
],
"errors": null,
"id": 1
}