Shows transactions history for the selected order or wallet
CLI Example
Command syntax:
srv_xchange order history
-net <net_name>
{-order <order_hash> | -addr <wallet_addr>}
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
-order/-addr - hash of the order/ address of the wallet
Example:
Command:
cellframe-node-cli srv_xchange order history
-net riemann
-addr o9z3wUTSTicckJuozF3GcveoJK22eFmYXTZ4c8z7cwQ76VLMvgTXhBcULJ44E6X8paJiHbxvAyCZ2jbLhBj3tQuTdC769DZ6qMzEqizP
Response:
Wallet o9z3wUTSTicckJuozF3GcveoJK22eFmYXTZ4c8z7cwQ76VLMvgTXhBcULJ44E6X8paJiHbxvAyCZ2jbLhBj3tQuTdC769DZ6qMzEqizP hisrory:
Hash: 0xFBE8756C321C05B31A58A5AC271627363C81BEDBA3155B11AE9F3C40AA85E080
Status: inactive, proposed 1.0 (1000000000000000000) tKEL for exchange to mtKEL, rate (mtKEL/tKEL): 1.0, net: riemann
Hash: 0xF7DC0EC97C712D83CDB876D92B2B63798E3217B094066B51D7A1479CD3BA988A
Status: inactive, proposed 2.0 (2000000000000000000) mtKEL for exchange to tKEL, rate (tKEL/mtKEL): 2000.0, net: riemann
Hash: 0x27A5A7C8D01A68EBFA0D524D20BE01E58C183D5E750AF85658001A4AD4726C41
Status: inactive, changed 1.0 (1000000000000000000) mtKEL for 2000.0 (2000000000000000000000) tKEL, rate (tKEL/mtKEL): 2000.0, remain amount 1.0 (1000000000000000000) mtKEL, net: riemann
...
Prev cond: 0xA66DEC0DF85EAFA9D7C1284DF1D5A5DA83195BB1EC734A6B9A0FF10DF7AC20BD
Hash: 0x8B4433B5D92CF80FD265843654D3650CF42FFFE0D5982354FEF249A137F21EBB
Status: active, proposed 1000.0 (1000000000000000000000) tKEL for exchange to mtKEL, rate (mtKEL/tKEL): 1000.0, net: riemann
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_xchange", "params":["srv_xchange;order;history;-net;riemann;-addr;o9z3wUTSTicckJuozF3GcveoJK22eFmYXTZ4c8z7cwQ76VLMvgTXhBcULJ44E6X8paJiHbxvAyCZ2jbLhBj3tQuTdC769DZ6qMzEqizP"], "id":"1"}'
Response:
{
"type": 0,
"result": "same as cli response",
"errors": null,
"id": 1
}