Using substrate-interface I'm trying to get the amount of DOT in staking for non-active validators, those that are waiting.
I can get the active validators' amount by using the storage_function
ErasStakers
, but I can't find any for the rest of the validators.
I get the {'total': 0, 'own': 0, 'others': []}
but just for the active stakers of the current era (Staking:ActiveEra
):
active_validator = substrate.query_map(
module='Staking',
storage_function='ErasStakers',
page_size=300,
params=[era_index]
)
Is there any call or combination of calls I could use to get the staked amount for the full set of validators (active+waiting)?