VishalParkash
VishalParkash

Reputation: 484

How to get Nominator's status?

I have been trying to understand the statuses of a Nominator on polkadot. But the documentation is not even clear about how to fetch the nominators satuses. can anyone share some knowledge by explaining the statuses such as inactive , waiting or the action. using the staking api for erasStakersPaged

const getPaged = await api.query.staking.erasStakersPaged(
                      parseInt(JSON.parse(JSON.stringify(indexes)).activeEra),
                      id,
                      page
                    );

this is returning paged, others with who and values. reponse

{
  pageTotal: '00,00,00,00,00,00,00,00',
  others: [
    {
      who: '0x000000000000000000000000000',
      value: '0,000,000,000'
    },
    {
      who: '0x000000000000000000000000000',
       value: '0,000,000,000'
}]

Upvotes: -1

Views: 13

Answers (0)

Related Questions