Takes funds from the conditional out of the Shared Funds transaction
Important
You can use hash of the original shared funds transaction and also hash of the all subsequent debit transactions as well - example. But the actual information about remaining funds you can see only using hash of the last transaction.
CLI Example
Command syntax:
emit_delegate take
-net <net_name>
-w <wallet_name>
-tx <transaction_hash>
-to_addr <addr>
-value <value>
-fee <value>
[-chain <chain_name>]
[-H {hex(default) | base58}]
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
-w - the name of the wallet which has a right to debit funds
-tx - hash of the shared funds transcaction
-to_addr - wallet address where funds will be transferred
-value - amount of funds being taken
-fee - commission for transaction
-chain - name of the preferred chain where transaction will be put: zerochain or mainchain (optional)
-H - hash format: HEX or base58 (optional)
Example:
Command:
cellframe-node-cli emit_delegate take -net raiden -w second_wallet -tx 0x8A19FC2BA2BEBFAD5F8FEA9E56902D059E391CD05E1A692AD47BCA00FA601F41 -to_addr jrmnGqeeds4Dp67AZE9LY5uWW5zrbm8ugCYn5BJ6GXFdZiZkDgkAPPPvQkTTZxzjLj3LsabF8Zz96kkcmXZf4phyUskWZYSNW3TpKjqF -value 100.0 -fee 1.0
Response:
status: success
tx_hash: 0x195CA09401AC37B5C559B15B435BBA431733902DB4ACF110F77AA1CE60756DD6
JSON-RPC Example
Command:
curl -s --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{"method":"emit_delegate", "subcommand":["take"], "arguments":{"net":"raiden","w":"second_wallet","tx":"0x392D426B48EC0B66A333EBB074F1E8F2A3D1CFD7F7C5E5DC71BD25FE0D2363F0","to_addr":"jrmnGqeeds4Dp67AZE9LY5uWW5zrbm8ugCYn5BJ6GXFdZiZkDgkAPPPvQkTTZxzjLj3LsabF8Zz96kkcmXZf4phyUskWZYSNW3TpKjqF","value":"100.0","fee":"1.0"}, "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"status": "success",
"tx_hash": "0x81868733C221B9B0B78251CBA81E5CD3066DF0E51FBB62BD2B1FFAD70FBE5579"
}
],
"id": 1
}