Creates a transaction. ## Request Structure `JSON object:` ```JSON { "method": "tx_create", "subcommand": ["tx_create"], "arguments": { "net": "network_name", "chain": "chain_name", "token": "token_ticker", "to_addr": "addr", "value": "value_datoshi", "fee": "value", "from_wallet | from_emission (cert | wallet_fee)": "wallet_name | emission hash ( cert_name | wallet_name)" }, "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]] **`chain`** - the name of the chain (`main` or `zerochain`) **`token`** - token ticker **`to_addr`** - address of the receiving wallet (can be multiple) **`value`** - amount of datoshi user wants to send (can be multiple and must be written corresponding to the wallet addresses) **`fee`** - transaction commission **`from_wallet | from_emission (cert | wallet_fee)`** - name of wallet | hash of the emission which is used to send tokens (certificate which allows to use emission | wallet which is used to pay commission) ### Curl Example `Request:` ```actionscript curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d ' { "method": "tx_create", "subcommand": ["tx_create"], "arguments": { "net": "foobar", "chain": "main", "token": "BUZ", "to_addr": "ptV4n68gTebdUTcbozov2BjMQBFhKKkwdrbiU7cL2Sn8GGsKH6ef5AD39mH363M5sCVAHnBUNoyGLSfyBb6dz172KrcTgzBAydvw1PMZ", "value": "1000.0e+18", "fee": "1.0e+18", "from_wallet": "foobar_root_0" }, "id": "1" }' ``` `Response:` ```json { "type": 0, "result": "transfer=Ok\ntx_hash=0x56CD2CD2B70B1FF698219E4A7E9B1744336CFD6338E8901E248836598E0D8823\n", "id": 1 } ```