Lists all coins in the network.

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

CLI 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

JSON-RPC Request - LEDGER LIST COINS

Lists all coins in the network.

Request Structure

JSON object:

{
  "method": "ledger",
  "subcommand": ["list","coins"],
  "arguments": {
    "net": "network_name"
  },
  "id": "1"
}

Parameters: net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received using - Node Command - NET LIST

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
  "method": "ledger",
  "subcommand": ["list","coins"],
  "arguments": {
    "net": "Backbone"
  },
  "id": "1"
}'

Response:

{
  "type": 2,
  "result": [
    [
      {
        "-->Token name": "CELL",
        "type": "CF20",
        "flags": "NONE",
        "description": "The token description is not set",
        "Supply current": "0",
        "Supply total": "0",
        "Decimals": "18",
        "Auth signs valid": 4,
        "Auth signs total": 8,
        "Signatures public keys": [
          {
            "line": 0,
            "hash": "0xBF56C63E8C615FD805AA6BD354E9FFAF5C068CEC76B47F375682EE81636ADC73",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 1,
            "hash": "0xC290640C9588FC964E14A61F13829B27A4714C2A00714AE5401994AC4562BF7E",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 2,
            "hash": "0xE2A835AAFC642A84611ED116D606C87166A1E7B6CAD6EF0E188F3CEB008679BF",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 3,
            "hash": "0xAD56D4158CB5BEDD0C2633D0A0E9E2708E8EFEC59DDBDEB59D76C0F3EF20B4D3",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 4,
            "hash": "0x590CA116C6216D0BA212838D1A04C4109A0745C344BAD4D847350CBF90BDAC14",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 5,
            "hash": "0x9591F7B682401FEEB76371C8A548052C3D0B091A18DA7D1F35E01A6302C04688",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 6,
            "hash": "0x2CEBD25759B9B4D9D4456BC7F4818061B544A70D9DB8F1424730AFF4669CF8D2",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 7,
            "hash": "0xB33EDC176790E7FEFD98167996E97892507BB3B1C81E1C99C50BC86BDEE8B6F0",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          }
        ],
        "Total emissions": 26283
      },
      {
        "-->Token name": "BUSD",
        "type": "CF20",
        "flags": "NONE",
        "description": "The token description is not set",
        "Supply current": "0",
        "Supply total": "0",
        "Decimals": "18",
        "Auth signs valid": 2,
        "Auth signs total": 3,
        "Signatures public keys": [
          {
            "line": 0,
            "hash": "0xE2A835AAFC642A84611ED116D606C87166A1E7B6CAD6EF0E188F3CEB008679BF",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 1,
            "hash": "0xAD56D4158CB5BEDD0C2633D0A0E9E2708E8EFEC59DDBDEB59D76C0F3EF20B4D3",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          },
          {
            "line": 2,
            "hash": "0x590CA116C6216D0BA212838D1A04C4109A0745C344BAD4D847350CBF90BDAC14",
            "pkey_type": "DAP_PKEY_TYPE_SIGN_DILITHIUM",
            "bytes": 1196
          }
        ],
        "Total emissions": 2
      },
    # this output was cut to make it readable
      }
    ]
  ],
  "id": 1
}
Link to original