Crates.io | solana-foundation-delegation-program-cli |
lib.rs | solana-foundation-delegation-program-cli |
version | 1.0.6 |
source | src |
created_at | 2021-06-03 02:59:26.552874 |
updated_at | 2022-08-25 20:35:02.920448 |
description | Solana Foundation Delegation Program Command-line Utility |
homepage | |
repository | https://github.com/solana-labs/stake-o-matic |
max_upload_size | |
id | 405554 |
size | 124,650 |
This utility manages Solana Foundation Delegation Program registrations.
Install Rust from https://rustup.rs/, then run
$ sudo apt install libudev-dev
$ cargo install solana-foundation-delegation-program-cli
$ solana-foundation-delegation-program --version
To register you will need:
Two validator identity keypairs; one for the Solana Testnet and another for the Solana Mainnet
Approximately ◎0.002 to submit the registration
To begin, create your validator identity keypairs by running:
$ solana-keygen new -o testnet-validator-keypair.json
$ solana-keygen new -o mainnet-validator-keypair.json
Keep these keypairs safe; you cannot change them once you submit your registration.
Confirm your balance is not empty,
$ solana -um balance
then run the following command to submit your registration:
$ solana-foundation-delegation-program apply --mainnet mainnet-validator-keypair.json --testnet testnet-validator-keypair.json
To view the status of your registration, run
$ solana-foundation-delegation-program status testnet-validator-keypair.json
or
$ solana-foundation-delegation-program status mainnet-validator-keypair.json
If you wish to withdraw your registration, run
$ solana-foundation-delegation-program withdraw testnet-validator-keypair.json
or
$ solana-foundation-delegation-program withdraw mainnet-validator-keypair.json
Once withdrawn, your registration is deleted and cannot be recovered.