Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Please add a method to the delegation contract to fetch list of nodes staked by a given user #47

Open
hiddentao opened this issue Dec 21, 2020 · 2 comments

Comments

@hiddentao
Copy link

hiddentao commented Dec 21, 2020

Taking a look at delegation contract code. Am I correct in concluding that there is no way to know which BLS keys a given user has staked by just querying the staking/delegation contract? I don't see user ids being mapped to node ids anywhere.

If a method could be added that retrieves the list of nodes ids for a given user id that would be enough to be able to generate a UI based on the contract data alone. I need this for the Sting wallet.

@sasurobert
Copy link
Contributor

The delegator does not delegate to a certain BLS key. It delegates to the service provider, thus to the complete staking pool.

@hiddentao
Copy link
Author

I'm talking about stakers, not delegators. I can't currently query the staking contract to see which BLS keys are mapped to my address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants