const nominators = await api.query.staking.nominators.entries();

example json output for nominators vaiable:

      "targets": [
      "submittedIn": "813",
      "suppressed": false

I thought that the targets were validators which the nominator voted for, but that doesn't always seem to be the case.

What do these targets represent?

  • Can you give an example when this is not the case?
    – Shawn Tabrizi
    Commented Aug 28, 2022 at 11:52
  • @ShawnTabrizi Is this a list of all validators a nominator has staked with in the past (not adjusted for unbonding)? I was confused because many of the targets are not validators when you check subscan, but I think that's because they are simply no longer validators.
    – Teo
    Commented Aug 30, 2022 at 1:45
  • 1
    It is not constantly updated. If a user nominates some people a long time ago, never updates their nominations, and the validators drop out, then the storage will be in a stale state.
    – Shawn Tabrizi
    Commented Aug 30, 2022 at 22:04

1 Answer 1


It comes from the staking Rust code.

It means what validators this nominator is nominating.

  • I don't think that's correct. If you check subscan it will show you that many of those targets are no longer supported by the nominator; some of them aren't even validators anymore. I think that this is a list of all validators the nominator has nominated for.
    – Teo
    Commented Aug 30, 2022 at 1:30
  • 1
    The nominators set those targets. That's a list they want to nominate. We could say they are nominating those validators from some point of view because the nominator selects them and clicks the nominate button. And what you said is the result of the election.
    – AurevoirXavier
    Commented Aug 30, 2022 at 1:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.