Sets the minimum stake value

CLI Example

Command syntax:

srv_stake min_value 
-net <net_name> 
-cert <cert_name> 
-value <value>

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
-cert - name of the certificate
-value - stake value (in datoshi)

Example:

Command:

cellframe-node-cli srv_stake min_value 
-net foobar 
-cert foobar.root.pvt.0 
-value 20.0e+18

Response:

Minimum stake value has been set. Decree hash 0x3C14ED115BE3E7A380C144C3D1811DC05327619AAFFACE47E082F063FFFD96E3

JSON-RPC Example

Command:

curl -X POST http://rpc.cellframe.net/connect  -d '{"method":"srv_stake", "params":["srv_stake;min_value;-net;foobar;-cert;foobar.root.pvt.0;-value;20.0e+18"], "id":"1"}'

Response:


"type": 0,
"result": "Minimum stake value has been set. Decree hash 0xA1518C0B2E257164D82943C4D6BFF8E5C28712393AB22CF663B66C5E4C062A7E",
"errors": null,
"id": 1
}