Shows list of all coins in the net
CLI Example
Command syntax:
ledger list coins
-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
Example:
Command:
cellframe-node-cli ledger list coins
-net foobar
Response:
Found 2 tokens in foobar ledger
-->Token name 'BUZ', type CF20, flags: NO_FLAGS, description: 'The token description is not set'
Supply (current/total) 0/0
Decimals: 18
Auth signs (valid/total) 1/1
TSD and Signs:
signatures:
1) 0xE08FD473071933D50FEF761BB47C4F9C1FAE392BC5138E7BE991E53F03C9C0EF, sig_dil, 2096 bytes
Total emissions 1
___
-->Token name 'mBUZ', type CF20, flags: NO_FLAGS, description: 'The token description is not set'
Supply (current/total) 0/0
Decimals: 18
Auth signs (valid/total) 1/1
TSD and Signs:
ticker_token_from: BUZ
emission_rate: 0.001
signatures:
1) 0xE08FD473071933D50FEF761BB47C4F9C1FAE392BC5138E7BE991E53F03C9C0EF, sig_dil, 2096 bytes
Total emissions 0
___
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"ledger", "params":["ledger;list;coins;-net;foobar"], "id":"1"}'
Response:
{
"type": 0,
"result": "Found 2 tokens in foobar ledger\n-->Token name 'BUZ', type CF20, flags: NO_FLAGS, description: 'The token description is not set'\n\tSupply (current\/total) 0\/0\n\tDecimals: 18\n\tAuth signs (valid\/total) 1\/1\nTSD and Signs:\nsignatures: \n1) 0xE08FD473071933D50FEF761BB47C4F9C1FAE392BC5138E7BE991E53F03C9C0EF, sig_dil, 2096 bytes\n\tTotal emissions 1\n___\n-->Token name 'mBUZ', type CF20, flags: NO_FLAGS, description: 'The token description is not set'\n\tSupply (current\/total) 0\/0\n\tDecimals: 18\n\tAuth signs (valid\/total) 1\/1\nTSD and Signs:\nticker_token_from: BUZ\nemission_rate: 0.001\nsignatures: \n1) 0xE08FD473071933D50FEF761BB47C4F9C1FAE392BC5138E7BE991E53F03C9C0EF, sig_dil, 2096 bytes\n\tTotal emissions 0\n___\n",
"errors": null,
"id": 1
}