DPoS API
Console API and JSON-RPC API related to DxChain3.0 system contract
JSON-RPC
dpos_getBaseInfos
Parameter
params: [
null |'latest' | 'earliest' | 'pending' | 'hex number'
]Return
Example
curl -H 'content-type:application/json' -d '{"jsonrpc":"2.0","method":"dpos_getBaseInfos","params":["latest"],"id":1}' RPC_URL
// dpos.base("latest")
// result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"BLACK_HOLE_ADDRESS": "0x0000000000000000000000000000000000000000",
"BLOCK_SECONDS": 3,
"EPOCH_BLOCKS": 28800,
"MAX_LEVEL_VALIDATOR_COUNT": 120,
"MAX_PUNISH_COUNT": 278,
"MAX_RATE": 100,
"MAX_VALIDATORS_COUNT": 210,
"MAX_VALIDATOR_COUNT_LV1": 21,
"MAX_VALIDATOR_COUNT_LV2": 33,
"MAX_VALIDATOR_COUNT_LV3": 66,
"MAX_VALIDATOR_COUNT_LV4": 99,
"MAX_VALIDATOR_DETAIL_LENGTH": 1000,
"MEDIUM_LEVEL_VALIDATOR_COUNT": 90,
"MIN_DEPOSIT": 40000000000000000000000000,
"MIN_LEVEL_VALIDATOR_COUNT": 60,
"MIN_RATE": 70,
"PROPOSAL_DURATION_EPOCHS": 7,
"RATE_SET_LOCK_EPOCHS": 1,
"REWARD_DEPOSIT_FROM_LV1_TO_LV2": 128250000000000000000,
"REWARD_DEPOSIT_FROM_LV2_TO_LV3": 157125000000000000000,
"REWARD_DEPOSIT_FROM_LV3_TO_LV4": 180750000000000000000,
"REWARD_DEPOSIT_FROM_LV4_TO_LV5": 199875000000000000000,
"REWARD_DEPOSIT_OVER_LV5": 214125000000000000000,
"REWARD_DEPOSIT_UNDER_LV1": 95250000000000000000,
"SAFE_MULTIPLIER": 1000000000000000000,
"TOTAL_DEPOSIT_LV1": 15000000000000000000000000000,
"TOTAL_DEPOSIT_LV2": 20000000000000000000000000000,
"TOTAL_DEPOSIT_LV3": 25000000000000000000000000000,
"TOTAL_DEPOSIT_LV4": 30000000000000000000000000000,
"TOTAL_DEPOSIT_LV5": 35000000000000000000000000000,
"VALIDATOR_REWARD_LOCK_EPOCHS": 7,
"VALIDATOR_UNSTAKE_LOCK_EPOCHS": 1,
"VOTE_CANCEL_EPOCHS": 1
}
}dpos_getAllProposalSets
Parameter
Return
Example
dpos_getAddressProposalSets
Parameter
Return
Example
dpos_getProposal
Parameter
Return
Example
dpos_getAllProposals
Parameter
Return
Example
dpos_getAddressProposals
Parameter
Return
Example
dpos_getValidator
Parameter
Return
Example
dpos_getCurrentEpochValidators
Parameter
Return
Example
dpos_isEffictiveValidator
Parameter
Return
Example
dpos_effictiveValsLength
Parameter
Return
Example
dpos_getEffictiveValidators
Parameter
Return
Example
dpos_cancelQueueValidatorsLength
Parameter
Return
Example
dpos_getCancelQueueValidators
Parameter
Return
Example
dpos_validatorVotersLength
Parameter
Return
Example
dpos_getValidatorVoters
Parameter
Return
Example
dpos_pendingValidatorReward
Parameter
Return
Example
dpos_validatorRewardsInfo
Parameter
Return
Example
dpos_validatorRewardInfoByEpoch
Parameter
Return
Example
dpos_pendingVoteReward
Parameter
Return
Example
dpos_votesRewardRedeemInfo
Parameter
Return
Example
dpos_votesRewardRedeemInfos
Parameter
Return
Example
dpos_getTotalDeposit
Parameter
Return
Example
dpos_getTotalVotes
Parameter
Return
Example
dpos_epochInfo
Parameter
Return
Example
dpos_kickoutInfo
Parameter
Return
Example
dpos_punishInfo
Parameter
Return
Example
Last updated
Was this helpful?