Skip to main content

getstakingstatus

Command#

pacprotocol-cli getstakingstatus

getstakingstatus Returns an object containing various staking information.

Examples#

pacprotocol-cli getstakingstatus
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getstakingstatus", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/

Result#

{
"validtime": true|false, #(boolean) if the chain tip is within staking phases
"haveconnections": true|false, #(boolean) if network connections are present
"walletunlocked": true|false, #(boolean) if the wallet is unlocked
"mintablecoins": true|false, #(boolean) if the wallet has mintable coins
"enoughcoins": true|false, #(boolean) if available coins are greater than reserve balance
"mnsync": true|false, #(boolean) if masternode data is synced
"staking status": true|false, #(boolean) if the wallet is staking or not
}

Running following help command

pacprotocol-cli help getstakingstatus

Will produce following output:

getstakingstatus
Returns an object containing various staking information.
Result:
{
"validtime": true|false, (boolean) if the chain tip is within staking phases
"haveconnections": true|false, (boolean) if network connections are present
"walletunlocked": true|false, (boolean) if the wallet is unlocked
"mintablecoins": true|false, (boolean) if the wallet has mintable coins
"enoughcoins": true|false, (boolean) if available coins are greater than reserve balance
"mnsync": true|false, (boolean) if masternode data is synced
"staking status": true|false, (boolean) if the wallet is staking or not
}
Examples:
> pacprotocol-cli getstakingstatus
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getstakingstatus", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/