Replies: 3 comments 10 replies
-
@Janislav @dandanlen is it possible to make an RPC for this? Or would we need to change some code on the State Chain to allow this to be queryable from storage? |
Beta Was this translation helpful? Give feedback.
-
I think the only way to do this currently is using getKeys to get the keys of the I'm not a fan of adding a dedicated storage item with a list of balances - this will require a bunch of callbacks etc to keep in sync with the real balances. Better to define a custom rpc. Rpc might be a pain, but in this case I think it's the right tool for the job. |
Beta Was this translation helpful? Give feedback.
-
@dandanlen @Janislav is this task recorded anywhere? If not, I'll create one |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we can fetch the current validators, but not the current stakers i.e. those who have locked up coins on the StakeManager contract and the events registered on the State Chain.
Would make it much easier to get an insight into what's happening if there were a query to get a list of current stakers and their staked balances according to the state chain.
Beta Was this translation helpful? Give feedback.
All reactions