Skip to main content

getgovernanceinfo

Command#

pacprotocol-cli getgovernanceinfo

getgovernanceinfo Returns an object containing governance parameters.

Examples#

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

Result#

{
"governanceminquorum": xxxxx, #(numeric) the absolute minimum number of votes needed to trigger a governance action
"proposalfee": xxx.xx, #(numeric) the collateral transaction fee which must be paid to create a proposal in PAC
"superblockcycle": xxxxx, #(numeric) the number of blocks between superblocks
"lastsuperblock": xxxxx, #(numeric) the block number of the last superblock
"nextsuperblock": xxxxx, #(numeric) the block number of the next superblock
}

Running following help command

pacprotocol-cli help getgovernanceinfo

Will produce following output:

getgovernanceinfo
Returns an object containing governance parameters.
Result:
{
"governanceminquorum": xxxxx, (numeric) the absolute minimum number of votes needed to trigger a governance action
"proposalfee": xxx.xx, (numeric) the collateral transaction fee which must be paid to create a proposal in PAC
"superblockcycle": xxxxx, (numeric) the number of blocks between superblocks
"lastsuperblock": xxxxx, (numeric) the block number of the last superblock
"nextsuperblock": xxxxx, (numeric) the block number of the next superblock
}
Examples:
> pacprotocol-cli getgovernanceinfo
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getgovernanceinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:1111/