# Validator

# Terra.validator(val_address)

You can instantiate a ValidatorQuery with a validator operator address.

validator = terra.validator(<terra-validator-address>)

# Returns

ValidatorQuery

# Parameters

  • val_address ValAddress

# Associated Account

# ValidatorQuery.account

Every validator operator address can be used to derive the account address associated with it.

acc = validator.account
acc.address # terra...

# Property Value

AccountQuery of the associated account of the validator.

# Validator Info

# ValidatorQuery.info()

Get information about the validator.

# Example: Get Validator Moniker
validator.info().description.moniker

# Returns

Validator populated with the information about the validator, if it is registered on that chain.

# Parameters

None

# Validator Rewards

# ValidatorQuery.rewards()

Get the reward info for a Validator.

# Example: Get Validator Moniker
validator.rewards()

# Returns

dict with the following structure:

# Parameters

  • key str

# Withdraw Address

ValidatorQuery.withdraw_address()

# Delegations

ValidatorQuery.delegations()

# Unbonding Delegations

ValidatorQuery.unbonding_delegations()

# Redelegations

ValidatorQuery.redelegations()

# Bonded Validators

ValidatorQuery.bonded_validators()

# Staking Transactions

ValidatorQuery.staking_txs()

Updated on: 3/18/2020, 5:05:40 PM