Function validator_total_stake

Source
pub fn validator_total_stake() -> NearToken
Expand description

Returns the total stake of validators in the current epoch.

ยงExamples

use near_sdk::env::validator_total_stake;
use near_sdk::NearToken;

assert_eq!(
    validator_total_stake(),
    NearToken::from_yoctonear(0)
);