Approves stake transaction by root node certificate within specified net name
CLI Example
Command syntax:
srv_stake approve
-net <net_name>
-tx <transaction_hash>
-poa_cert <priv_cert_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
-tx - hash of the transaction
-poa_cert - certificate of the root node (proof of authority)
Example:
Command:
cellframe-node-cli srv_stake approve
-net foobar
-tx 0xC7C41EE4DD07879E1625CE66E2010B9CAD928A41764A54A1EC1A72E658332D8E
-poa_cert foobar.root.pvt.0
Response:
Approve decree 0xE6F36A62F010576AD90DECB13939EB2247B5C5C27D6984C9188E9C3469B67AE2 successfully created
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_stake", "params":["srv_stake;approve;-net;foobar;-tx;0xC7C41EE4DD07879E1625CE66E2010B9CAD928A41764A54A1EC1A72E658332D8E;-poa_cert;foobar.root.pvt.0"], "id":"1"}'
Response:
{
"type": 0,
"result": "Approve decree 0x54AA403D43C10C35781899681168A1E6FAA8D8DDCEF31F61208546080ACF1B4E successfully created",
"errors": null,
"id": 1
}