Creates a [[3. Conditional Transactions|conditional transaction]]. ## Request Structure `JSON object:` ```JSON { "method": "tx_cond_create", "subcommand": ["tx_cond_create"], "arguments": { "net": "network_name", "token": "token_ticker", "w": "wallet_name", "cert": "pub_cert_name", "value": "value_datoshi", "fee": "value", "unit": "B | SEC", "srv_uid": "service_id" }, "id": "1" } ``` `Parameters:` **`net (network_name)`** - 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]] **`token`** - token ticker **`w`** - name of the wallet **`cert`** - name of the public certificate **`value`** - cost of service in datoshi **`fee`** - transaction commission **`unit`** - service unit: values - `B` (bytes) | `SEC` (seconds) **`srv_uid`** - UID number of the service` ### Curl Example `Request:` ```actionscript curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d ' { "method": "tx_cond_create", "subcommand": ["tx_cond_create"], "arguments": { "net": "foobar", "token": "BUZ", "w": "foobar_root_0", "cert": "certname", "value": "5.0e+18", "fee": "0.1e+18", "unit": "SEC", "srv_number": "1" }, "id": "1" }' ``` `Response:` ```json { "type": 0, "result": "0x8A766B43EF8A18D1F6F86F19636D6EDEFD504EFD7BC03226DA07D2CF95A098C0Conditional 256bit TX created succefully, hash=\n", "id": 1 } ```