module Harmony::Api::V1::Staking::Validator
Public Instance Methods
get_all_validator_addresses()
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 12 def get_all_validator_addresses response(post('getAllValidatorAddresses')) end
get_all_validator_information(page: -1)
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 24 def get_all_validator_information(page: -1) response(post('getAllValidatorInformation', params: [page])) end
get_all_validator_information_by_block_number(page: -1, block_number: 0)
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 28 def get_all_validator_information_by_block_number(page: -1, block_number: 0) params = [page, Harmony::Api::Utilities.int_to_hex(block_number)] response(post('getAllValidatorInformationByBlockNumber', params: params)) end
get_delegations_by_validator(address)
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 38 def get_delegations_by_validator(address) response(post('getDelegationsByValidator', params: [address])) end
get_elected_validator_addresses()
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 16 def get_elected_validator_addresses response(post('getElectedValidatorAddresses')) end
get_validator_information(address)
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 20 def get_validator_information(address) response(post('getValidatorInformation', params: [address])) end
get_validators(epoch)
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 8 def get_validators(epoch) response(post('getValidators', params: [epoch])) end
is_block_signer(address, block_number: 0)
click to toggle source
# File lib/harmony/api/v1/staking/validator.rb, line 33 def is_block_signer(address, block_number: 0) params = [Harmony::Api::Utilities.int_to_hex(block_number), address] response(post('isBlockSigner', params: params)) end