Closed d4rk0snet closed 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.
Thank you for your reply, i found an effective way to get this information.
Nice! Feel free to share this here in case future builder face the same blocking.
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 ?