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

feat(nns): list_neurons supports querying by subaccount #3592

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

max-dfinity
Copy link
Contributor

@max-dfinity max-dfinity commented Jan 24, 2025

Why

This allows users who know the subaccounts of their neurons (i.e. they know the nonce and the principal used when the neurons are created) to specify which neurons they would like to list without needing to know the neuron ids (which are generated at random).

What

This adds a new API field to list_neurons called neuron_subaccounts, which works in the same way that neuron_ids works. By specifying which subaccounts the user would like to list, they are able to retrieve neurons in the same way that they also can provide neuron ids. Both of these are compatible, and in the case of overlaps, no duplicates are returned.

@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from e735184 to 16a14b2 Compare January 24, 2025 01:12
@max-dfinity max-dfinity changed the title List Neurons by subaccount feat(nns): list_neurons supports querying by subaccount Jan 24, 2025
@github-actions github-actions bot added the feat label Jan 24, 2025
@max-dfinity max-dfinity marked this pull request as ready for review January 29, 2025 00:31
@max-dfinity max-dfinity requested review from a team as code owners January 29, 2025 00:31
@max-dfinity max-dfinity force-pushed the msum/neurons-by-subaccounts branch from afe31d5 to 504cc42 Compare January 29, 2025 00:55
@max-dfinity max-dfinity marked this pull request as draft January 29, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant