Shows threshold list

CLI Example

Command syntax:

ledger list threshold 
[-hash <tx_threshold_hash>] 
-net <net_name>

Options:

-net - name of the Cellframe network. The list of networks can be found in the <Config_dir> \ etc \ network folder folder or received by the Cellframe-Node-Cli Net List command
-hash - hash of the transaction in the threshold (optional)

Example:

Command:

cellframe-node-cli ledger list threshold 
-net foobar

Response:

0 items in ledger tx threshold

0 items in ledger emission threshold

JSON-RPC Example

Command:

curl --unix-socket /opt/cellframe-node/var/run/node_cli 
-X POST http://localhost/connect 
-d '{"method":"ledger", "params":["ledger;list;threshold;-net;foobar"], "id":"1"}'

Response:

{
"type": 0,
"result": "0 items in ledger tx threshold\n0 items in ledger emission threshold\n",
"errors": null,
"id": 1
}