Lists actual token declarations
CLI Example
Command syntax:
token list
-net <net_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
Example:
Command:
cellframe-node-cli token list
-net foobar
Response:
=== Datum Token Declaration ===
hash: 0x837723C2934FCBD1772EFB81BA5B91443A18BF09571FB891F0901AA29AA9FE8C
ticker: BUZ
size: 3614
version: 2
type: DECL
subtype: CF20
decimals: 18
auth signs (valid/total) 1/1
total_supply: 0
flags: NONE
signatures:
1) 0x035637F72D616C39A5121995743D42878B335B73DEB8A539023B8E8059C1D1A1, sig_dil, 2096 bytes
=== Datum Token Declaration ===
hash: 0xA48AB4D486DF603CFD86E41B6B1A16003AEF2BB00E7CDD70FEEE748EA6F0454B
ticker: mBUZ
size: 3922
version: 2
type: DECL
subtype: CF20
decimals: 18
auth signs (valid/total) 1/1
total_supply: 0
flags: NONE
ticker_token_from: BUZ
emission_rate: 0.001
signatures:
1) 0x035637F72D616C39A5121995743D42878B335B73DEB8A539023B8E8059C1D1A1, sig_dil, 2096 bytes
---------------
tokens: 2
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"token", "params":["token;list;-net;foobar"], "id":"1"}'
Response:
{
"type": 0,
"result": "=== Datum Token Declaration ===\nhash: 0x837723C2934FCBD1772EFB81BA5B91443A18BF09571FB891F0901AA29AA9FE8C\nticker: BUZ\nsize: 3614\nversion: 2\ntype: DECL\nsubtype: CF20\ndecimals: 18\nauth signs (valid/total) 1/1\ntotal_supply: 0\nflags: NONE\nsignatures: \n1) 0x035637F72D616C39A5121995743D42878B335B73DEB8A539023B8E8059C1D1A1, sig_dil, 2096 bytes\n=== Datum Token Declaration ===\nhash: 0xA48AB4D486DF603CFD86E41B6B1A16003AEF2BB00E7CDD70FEEE748EA6F0454B\nticker: mBUZ\nsize: 3922\nversion: 2\ntype: DECL\nsubtype: CF20\ndecimals: 18\nauth signs (valid/total) 1/1\ntotal_supply: 0\nflags: NONE\nticker_token_from: BUZ\nemission_rate: 0.001\nsignatures: \n1) 0x035637F72D616C39A5121995743D42878B335B73DEB8A539023B8E8059C1D1A1, sig_dil, 2096 bytes\n---------------\ntokens: 2\n",
"errors": null,
"id": 1
}