Holds funds on the shared funds account
CLI Example
Command syntax:
emit_delegate hold
-net <net_name>
-w <wallet_name>
-token <ticker>
-value <value>
-fee <value>
-signs_minimum <value_int>
-pkey_hashes <hash1[,hash2,...,hashN]>
[-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 from which funds will be taken
-token - ticker of the token
-value - amount of funds being taken for holding
-fee - commission for transaction
-signs_minimum - quantity of required valid signatures fot funds debit
-pkey_hashes - public keys of users who have the right to participate in the consensus of the funds withdrawal (minimum - 1)
-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 hold -net raiden -w main_wallet -token tCELL -value 1000.0 -fee 1.0 -signs_minimum 2 -pkey_hashes 0x0E9D0534BD148C2373CC78C5834D08246A52F6D169DEAB99F8D7CCEAF107A1CE,0xF8DA3298DFC838741ABAA8D8AA5056E54D0FC15E8FC0EF3A89290476778FC1D5,0x011FCE96B76FBA54F5EB67AA134A013C3BD52EB88A4132A7F5C1939807F3D5A7
Response:
status: succes
tx_hash: 0x8A19FC2BA2BEBFAD5F8FEA9E56902D059E391CD05E1A692AD47BCA00FA601F41**
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":["hold"], "arguments":{"net":"raiden","w":"main_wallet","token":"tCELL","value":"1000.0","fee":"1.0","signs_minimum":"2","pkey_hashes":"0x0E9D0534BD148C2373CC78C5834D08246A52F6D169DEAB99F8D7CCEAF107A1CE,0xF8DA3298DFC838741ABAA8D8AA5056E54D0FC15E8FC0EF3A89290476778FC1D5,0x011FCE96B76FBA54F5EB67AA134A013C3BD52EB88A4132A7F5C1939807F3D5A7"}, "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"status": "success",
"tx_hash": "0x392D426B48EC0B66A333EBB074F1E8F2A3D1CFD7F7C5E5DC71BD25FE0D2363F0"
}
],
"id": 1
}