Lists all exchange transactions. Optionally there can be applied filtration by time or address of the wallet.

All times are in RFC822. For example, “7 Dec 2023 21:18:04

CLI Example

Command syntax:

srv_xchange tx_list 
-net <net_name> 
[-time_from <From time>] 
[-time_to <To time>]
[[-addr <wallet_addr>  [-status {inactive|active|all}] ]

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
 
filtration options:
-time_from - filtration by time since specified value (optional)
-time_to - filtration by time until specified value (optional)
-addr - filtration by specified wallet address (optional)
-status - transactions status: inactive/active/all(optinal, used if filtration by wallet address was chosen )

Example:

Command:

cellframe-node-cli srv_xchange tx_list 
-net riemann 
-addr o9z3wUTSTicckJuozF3GcveoJK22eFmYXTZ4c8z7cwQ76VLMvgTXhBcULJ44E6X8paJiHbxvAyCZ2jbLhBj3tQuTdC769DZ6qMzEqizP

Response:

Hash: 0xE0F5065487E75C8BC7C78BB23498ECE955A221EAFFB1F9414EFCC433AE989F48
  Status: inactive,  changed 2.0 (2000000000000000000) mtKEL for 0.002 (2000000000000000) tKEL,  rate (tKEL/mtKEL): 0.001,  remain amount 0.0 (0) mtKEL, 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

Hash: 0x31FC67FBF72AD7251F229D017B6B03E6E8D9E6ABB0178D6587E7BDFC6452C216
  Status: active,  changed 1.0 (1000000000000000000) mtKEL for 2000.0 (2000000000000000000000) tKEL,  rate (tKEL/mtKEL): 2000.0,  remain amount 0.0 (0) mtKEL, net: riemann

Hash: 0x72FBB3ED3708074B229D7D8D46404E26347AEEFB3EC2F3B56A0CD4BE4AD1BBFB
  Status: active,  proposed 2.0 (2000000000000000000) tKEL for exchange to mtKEL,  rate (mtKEL/tKEL): 1.0, net: riemann

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_xchange", "params":["srv_xchange;tx_list;-net;riemann;-addr;o9z3wUTSTicckJuozF3GcveoJK22eFmYXTZ4c8z7cwQ76VLMvgTXhBcULJ44E6X8paJiHbxvAyCZ2jbLhBj3tQuTdC769DZ6qMzEqizP"], "id":"1"}'

Response:


"type": 0,
"result": "same as cli response",
"errors": null,
"id": 1
}