最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

node.js - How to get Nominator's status? - Stack Overflow

programmeradmin1浏览0评论

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'
}]
发布评论

评论列表(0)

  1. 暂无评论