From 03d3e0098ebfc4d30ebd92caac6d9991c8c9a7d2 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Mon, 11 Oct 2021 15:58:35 -0400 Subject: [PATCH] docs: Remove outdated instructions for managing stake accounts (#20555) --- docs/sidebars.js | 1 - docs/src/cli/manage-stake-accounts.md | 78 --------------------------- 2 files changed, 79 deletions(-) delete mode 100644 docs/src/cli/manage-stake-accounts.md diff --git a/docs/sidebars.js b/docs/sidebars.js index e263bcfbd..3eb4c75df 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -41,7 +41,6 @@ module.exports = { "cli/choose-a-cluster", "cli/transfer-tokens", "cli/delegate-stake", - "cli/manage-stake-accounts", "cli/deploy-a-program", "offline-signing", "offline-signing/durable-nonce", diff --git a/docs/src/cli/manage-stake-accounts.md b/docs/src/cli/manage-stake-accounts.md deleted file mode 100644 index b07b0ad79..000000000 --- a/docs/src/cli/manage-stake-accounts.md +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: Manage Stake Accounts ---- - -If you want to delegate stake to many different validators, you will need -to create a separate stake account for each. If you follow the convention -of creating the first stake account at seed "0", the second at "1", the -third at "2", and so on, then the `solana-stake-accounts` tool will allow -you to operate on all accounts with single invocations. You can use it to -sum up the balances of all accounts, move accounts to a new wallet, or set -new authorities. - -## Usage - -### Create a stake account - -Create and fund a derived stake account at the stake authority public key: - -```bash -solana-stake-accounts new \ - --stake-authority --withdraw-authority \ - --fee-payer -``` - -### Count accounts - -Count the number of derived accounts: - -```bash -solana-stake-accounts count -``` - -### Get stake account balances - -Sum the balance of derived stake accounts: - -```bash -solana-stake-accounts balance --num-accounts -``` - -### Get stake account addresses - -List the address of each stake account derived from the given public key: - -```bash -solana-stake-accounts addresses --num-accounts -``` - -### Set new authorities - -Set new authorities on each derived stake account: - -```bash -solana-stake-accounts authorize \ - --stake-authority --withdraw-authority \ - --new-stake-authority --new-withdraw-authority \ - --num-accounts --fee-payer -``` - -### Relocate stake accounts - -Relocate stake accounts: - -```bash -solana-stake-accounts rebase \ - --stake-authority --num-accounts \ - --fee-payer -``` - -To atomically rebase and authorize each stake account, use the 'move' -command: - -```bash -solana-stake-accounts move \ - --stake-authority --withdraw-authority \ - --new-stake-authority --new-withdraw-authority \ - --num-accounts --fee-payer -```