You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposed Change or Idea
The idea is to have a separate endpoint that returns the list of nominators based on the given/requested validator address.
What is the motivation for this feature
This feature was "requested" (they asked if it existed in Sidecar) by an external team and also mentioned in different SE questions (as noted in this comment).
Current Alternative
Right now this information is available (it is possible to be retrieved) in the following way as described by @TarikGul :
So for this in sidecar you can use /pallets/Staking/storage/nominators?keys[]=nominator_address to receive all the validators that the account is backing. After that you can retrieve all the active validators via /pallets/staking/validators. Now if you would like to see which nominator accounts are backing which validators in the current active set, you can query this storage call which will return all the nominators for a validator address: /pallets/Staking/storage/ErasStakers?keys[]=current_active_era&keys[]=validator_address
Additional Resources/Examples
There is also this script by W3F that is returning all of the nominations per validator in the active set. Bill mentioned this script but said that it is out-of-date. Just adding it here in case it is helpful and so that we have all the related information/resources.
Possible Implementation Ideas
Have an endpoint that would extend the /pallets/staking/validators endpoint so it would be of this form /pallets/staking/validators/<validator_address>
Have a query param in /pallets/staking/validators endpoint that would take the validators' address and return its nominators.
The text was updated successfully, but these errors were encountered:
Proposed Change or Idea
The idea is to have a separate endpoint that returns the list of nominators based on the given/requested validator address.
What is the motivation for this feature
This feature was "requested" (they asked if it existed in Sidecar) by an external team and also mentioned in different SE questions (as noted in this comment).
Current Alternative
Right now this information is available (it is possible to be retrieved) in the following way as described by @TarikGul :
Additional Resources/Examples
There is also this script by W3F that is returning all of the nominations per validator in the active set. Bill mentioned this script but said that it is out-of-date. Just adding it here in case it is helpful and so that we have all the related information/resources.
Possible Implementation Ideas
/pallets/staking/validators
endpoint so it would be of this form/pallets/staking/validators/<validator_address>
/pallets/staking/validators
endpoint that would take the validators' address and return its nominators.The text was updated successfully, but these errors were encountered: