Refills funds on the specified shared funds transaction  

CLI Example

Command syntax:

emit_delegate refill
-net <net_name>
-w <wallet_name> - wallet to writeoff value and pay fee
-value <value> - value to refill
-fee <value> - fee value
-tx <transaction_hash> - emit delegate tx hash to refill
[-H {hex(default) | base58}] - datum hash return format

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 from which funds will be taken
-value - amount of funds being taken for refill
-fee - commission for transaction
-tx - hash of the shared funds transaction is being refilled
-H - hash format: HEX or base58 (optional)

Example:

Command:

cellframe-node-cli emit_delegate refill -net foobar -w foobar_root_0 -value 10000.0 -fee 5.0 -tx 0x6F6C94C2810E62B791E62E73985901B1E21B568E0AFE78744385F4D38FD5F84

Response:

 status: success
 
        tx_hash: 0xE3180D8A8AF9859242303D082A87E2B4EA128EEF4AC490BB40A85E2C02F173B4

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":["refill"], "arguments":{"net":"foobar","w":"foobar_root_0","value":"10000.0","fee":"5.0","tx":"0x6F6C94C2810E62B791E62E73985901B1E21B568E0AFE78744385F4D38FD5F84E"}, "id":"1"}'

Response:

{
  "type": 2,
  "result": [
    {
      "status": "success",
      "tx_hash": "0xDD0F74060740BCF7B9844D10FE2A058B48F9265C74752D1459738F00512EBE4F"
    }
  ],
  "id": 1
}