capsule-corp-ternoa / ternoa-subql-dictionary

Ternoa dictionary to query substrate on-chain data 🚚
https://dictionary-mainnet.ternoa.dev/
1 stars 3 forks source link

How to get polkadot stash address in EraPaid events? #37

Closed d4rk0snet closed 2 years ago

d4rk0snet commented 2 years ago

Previously issue #36 answered that nodeId is an internal thing. When i go through EraPaid Event on dictionnary with this query : {events(orderBy: [BLOCK_HEIGHT_ASC] filter: { and: [{ call: { equalTo: "EraPaid" }} ]}) {pageInfo{endCursor hasNextPage}, nodes {blockId argsValue}}}

I have no information about the validator node stash address. Only have a nodeId .

How can i know which validator this event refers to ?

ipapandinas commented 2 years ago

hi @d4rk0snet The EraPaid event is a native substrate event from the staking pallet, is not maintained by Ternoa. It is use to specify the total era payout amount to share between active validators, there is no information regarding a specific validator. You can check the polkadot{.js} doc here.

d4rk0snet commented 2 years ago

Thank you for your reply, i found an effective way to get this information.

ipapandinas commented 2 years ago

Nice! Feel free to share this here in case future builder face the same blocking.