Lists active delegated keys and their parameters (optional - keys delegated with specified cert)
CLI Example
Command syntax:
srv_stake list keys
-net <net_name>
[-cert <delegated_cert> | -pkey <pkey_hash_str>]
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/-pkey - name of the delegated certificate/ hash of the public key (optional)
Example:
Command:
cellframe-node-cli srv_stake list keys
-net foobar
Response:
Pkey hash: 0x89B17A82EB5EC2E6192F9F5353B3C89F6995E4D12004A40515FD4E4C2D143A8E
Stake value: 1.0
Related weight: 33.333333333333333333%
Tx hash: 0x0000000000000000000000000000000000000000000000000000000000000000
Node addr: ABCD::EF00::0000::0000
Sovereign addr: N/A
Sovereign tax: 0.0%
Pkey hash: 0xC18BDA090E342709E95F556F80BF6D1104C6F8E16E4FA3E010557D85AA89FF7F
Stake value: 2.0
Related weight: 66.666666666666666666%
Tx hash: 0x696B2ACF794C48281C500586EAAC9AD5C4F51DD2C301BE685F486DAB4EB2CB84
Node addr: FA66::CE4F::4BD1::7BAD
Sovereign addr: N/A
Sovereign tax: 0.0%
Total keys count: 2
Total weight: 3.0 (3000000000000000000)
Minimum value for key delegating: 1.0 mBUZ
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"srv_stake", "params":["srv_stake;list;keys;-net;foobar"], "id":"1"}'
Response:
{
"type": 0,
"result": "same as cli response",
"errors": null,
"id": 1
}