Skip to main content

Handy CLI Comands

Create stake account

solana-keygen new --no-passphrase -o stake-account.json
solana create-stake-account --from validator-keypair.json stake-account.json 2 --stake-authority validator-keypair.json --withdraw-authority validator-keypair.json --fee-payer validator-keypair.json

Send solana to stake account

solana transfer --from validator-keypair.json stake-account.json 5 --allow-unfunded-recipient --fee-payer validator-keypair.json
solana delegate-stake stake-account.json vote-account-keypair.json

Upgrade

solana-install update