Skip to content

Conversation

max-dfinity
Copy link
Contributor

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.

@max-dfinity max-dfinity requested a review from a team as a code owner September 2, 2025 21:42
Copy link
Member

@marc0olo marc0olo left a 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?

@max-dfinity
Copy link
Contributor Author

@marc0olo done, anything else needed?

@max-dfinity max-dfinity requested a review from marc0olo September 9, 2025 17:23
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`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Run the script

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

Successfully merging this pull request may close these issues.

5 participants