在 NEAR 协议中获取一个质押池的委托人数量
Get a number of delegators of a staking pool in NEAR protocol
如何获得每个验证人的委托人数量?
我看到这里的区块浏览器正在拉取委托人数量:https://explorer.near.org/nodes/validators
你需要做一个view function call to the staking pool contract
执行此操作的 NEAR Explorer 代码在这里:https://github.com/near/near-explorer/blob/6fb41596299fd8ac073efc413b2d95074ea5d7da/backend/src/index.js#L387-L394
如何获得每个验证人的委托人数量?
我看到这里的区块浏览器正在拉取委托人数量:https://explorer.near.org/nodes/validators
你需要做一个view function call to the staking pool contract
执行此操作的 NEAR Explorer 代码在这里:https://github.com/near/near-explorer/blob/6fb41596299fd8ac073efc413b2d95074ea5d7da/backend/src/index.js#L387-L394