-
Notifications
You must be signed in to change notification settings - Fork 4
Add endpoint for validator staking #40
Copy link
Copy link
Open
Description
Background
Proposal
Add new endpoint validator_staking which returns a JSON discretionary with mappings
recorded_at_block: TheNumberfor the black at which this data was recorded.recorded_at_time: Clock time of recording (must not be computed from blocks, but actual block header clock)number_of_validators:the number of validators in the validator setnumber_of_waiting_validators: number of people trying to become a validatorstake_required_to_become_validator:current amount of $JPY needed to win a spotvalidator_reward: the current amount of reward paid out to a validator. Here their may be nuances, perhaps it is per $JOY, or perhaps it depends on other factors. If needed, just rename tovalidator_reward_estimateto accommodate this if it gets very tricky.total_staking: all tokens, across validators and nominators, involved in staking for validation.apr: the APR for a $JOY token involved in staking. Again, if this needs to be an estimate, update name
Reactions are currently unavailable