-
Notifications
You must be signed in to change notification settings - Fork 438
feat: Add an example of how to stake a neuron from a local identity #1266
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume you want this example to be owned by the governance team.
can you provide the corresponding entry in .github/CODEOWNERS
please?
@marc0olo done, anything else needed? |
1. **Install dfx**: | ||
Follow [DFINITY SDK installation](https://internetcomputer.org/docs/current/developer-docs/setup/install/) | ||
2. **Rust toolchain**: `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Run the script |
Overview
This adds an often requested example of how to stake an NNS neuron in Rust, which shows how to correctly calculate the subaccount and account identifier needed to transfer tokens to the correct ledger address.
Requirements
A working example of staking a neuron in a test environment.