Struct helium_api::models::Validator [−][src]
pub struct Validator {
pub address: String,
pub owner: String,
pub stake: Hnt,
pub last_heartbeat: u64,
pub version_heartbeat: u64,
pub stake_status: String,
pub penalty: f64,
pub penalties: Vec<Penalty>,
pub block_added: u64,
pub block: u64,
}Expand description
Represents a validator on the blockchain.
Fields
address: StringThe validator address is the base58 check-encoded public key of the validator.
owner: StringThe validator pwner is the base58 check-encoded public key of the owner of the validator.
stake: HntThe staked amount for the validator
last_heartbeat: u64The last heartbeat transaction of the validator
version_heartbeat: u64The last heartbeat version of the validator heartbeat
stake_status: StringThe current status of the validator (staked, cooldown, unstaked)
penalty: f64The total penalty of the validator
penalties: Vec<Penalty>A list of penalties this validator has received
block_added: u64The block this validator was added to chain
block: u64The current block this validator is synced to
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Validatorimpl UnwindSafe for ValidatorBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more