Creates conditional transaction

CLI Example

Command syntax:

tx_cond_create 
-net <net_name> 
-token <token_ticker> 
-w <wallet_name> 
-cert <pub_cert_name> 
-value <value_datoshi> 
-fee <value> 
-unit { b | sec } 
-srv_uid <numeric_uid>

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
-chain - the name of Chain. The list of chains can be found in the directory <Config_dir> \ etc \ network \ <network_name> or by the Cellframe-Node-CLI using command - net list chains
-token - kind of tocken
-w - name of the wallet
-cert - name of public certificate
-value - cost of transaction in datoshi
-fee - commission for creating transaction
-unit - measure unit: values - b (bytes) \ sec (seconds)
-srv_uid - UID of the service
 

Example:

Command:

cellframe-node-cli tx_cond_create 
-net foobar 
-token BUZ 
-w foobar_root_0 
-cert certname 
-value 5.0e+18 
-fee 0.1e+18 
-unit sec 
-srv_uid 1

Response:

 256bit TX created succefully, hash=0xB3D9052F434CD56A79869138E23BC77331C6CFBCD74E9D49CF4CED2DAF8B905AConditional

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect -d '{"method":"tx_cond_create", "params":["tx_cond_create;-net;foobar;-token;BUZ;-w;foobar_root_0;-cert;certname;-value;5.0e+18;-fee;0.1e+18;-unit;sec;-srv_uid;1"], "id":"1"}'

Response:


"type": 0,
"result": "0x8A766B43EF8A18D1F6F86F19636D6EDEFD504EFD7BC03226DA07D2CF95A098C0Conditional 256bit TX created succefully, hash=\n",
"errors": null,
"id": 1
}