Lists all token pairs
CLI Example
Command syntax:
srv_xchange token_pair list all
-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 srv_xchange token_pair list all
-net KelVPN
Response:
Tokens count pair: 6
KEL:mKEL KEL:CELL KEL:mCELL mKEL:CELL mKEL:mCELL CELL:mCELL
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_xchange", "params":["srv_xchange;token_pair;-net;KelVPN;list;all"], "id":"1"}'
Response:
{
"type": 0,
"result": "Tokens count pair: 6\nKEL:mKEL KEL:CELL KEL:mCELL mKEL:CELL mKEL:mCELL CELL:mCELL ",
"errors": null,
"id": 1
}