Locks specified token amount on the specified wallet
CLI Example
Command syntax:
stake_lock hold
-net <net_name>
-w <wallet_name>
-time_staking <YYMMDD>
-token <ticker>
-value <value>
-fee <value>
[-reinvest <percentage_from_1_to_100>]
[-chain <chain_name>]
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 - name of the wallet
-time_staking - staking lifespan until specified date "YYMMDD"
-token - ticker of the token
-value - stake value
-fee - fee value
-reinvest - percent of reinvesting sum (optional)
-chain - name of the chain (optional)
Example:
Command:
cellframe-node-cli stake_lock hold
-net raiden
-w mywallet
-time_staking 240705
-token tCELL
-value 1000.0e+18
-fee 0.05e+18
-reinvest 50
Response:
---> HOLD <---
TX STAKE LOCK CREATED
Successfully hash = 0x4ABF10EF333C3348B88614FD492270D3EC327B450DFF03CCE520376E85CC91D7
Save to take!
Contribution successfully made
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"stake_lock", "params":["stake_lock;hold;-net;raiden;-chain;main;-w;mywallet;-time_staking;240705;-token;tCELL;-value;1000.0e+18;-fee;0.05e+18;-reinvest;50"], "id":"1"}'
Response:
{
"type": 0,
"result": "---> HOLD <---\nTX STAKE LOCK CREATED\nSuccessfully hash = 0x9E219F249F54AC306745BDA7115181F834B79103EEDB999EAE5D379714ED6214\nSave to take!\nContribution successfully made",
"errors": null,
"id": 1
}