diff --git a/docs/src/cli/delegate-stake.md b/docs/src/cli/delegate-stake.md index e60f993f59..9c0d11e1f9 100644 --- a/docs/src/cli/delegate-stake.md +++ b/docs/src/cli/delegate-stake.md @@ -33,11 +33,13 @@ want to perform an action on the stake account you create next. Now, create a stake account: ```bash -solana create-stake-account --from stake-account.json --stake-authority --withdraw-authority +solana create-stake-account --from stake-account.json \ + --stake-authority --withdraw-authority \ + --fee-payer ``` -`` tokens are transferred from the account at `` to a new -stake account at the public key of stake-account.json. +`` tokens are transferred from the account at the "from" `` to +a new stake account at the public key of stake-account.json. The stake-account.json file can now be discarded. To authorize additional actions, you will use the `--stake-authority` or `withdraw-authority` keypair, @@ -72,7 +74,9 @@ Stake and withdraw authorities can be set when creating an account via the run: ```bash -solana stake-authorize --stake-authority --new-stake-authority +solana stake-authorize \ + --stake-authority --new-stake-authority \ + --fee-payer ``` This will use the existing stake authority `` to authorize a new stake @@ -87,7 +91,8 @@ addresses can be cumbersome. Fortunately, you can derive stake addresses using the `--seed` option: ```bash -solana create-stake-account --from --seed --stake-authority --withdraw-authority +solana create-stake-account --from --seed \ + --stake-authority --withdraw-authority --fee-payer ``` `` is an arbitrary string up to 32 bytes, but will typically be a @@ -122,12 +127,13 @@ is the vote account address. Choose a validator and use its vote account address in `solana delegate-stake`: ```bash -solana delegate-stake --stake-authority +solana delegate-stake --stake-authority \ + --fee-payer ``` -`` authorizes the operation on the account with address -``. The stake is delegated to the vote account with -address ``. +The stake authority `` authorizes the operation on the account with +address ``. The stake is delegated to the vote account +with address ``. After delegating stake, use `solana stake-account` to observe the changes to the stake account: @@ -155,11 +161,12 @@ Once delegated, you can undelegate stake with the `solana deactivate-stake` command: ```bash -solana deactivate-stake --stake-authority +solana deactivate-stake --stake-authority \ + --fee-payer ``` -`` authorizes the operation on the account with address -``. +The stake authority `` authorizes the operation on the account +with address ``. Note that stake takes several epochs to "cool down". Attempts to delegate stake in the cool down period will fail. @@ -169,12 +176,13 @@ in the cool down period will fail. Transfer tokens out of a stake account with the `solana withdraw-stake` command: ```bash -solana withdraw-stake --withdraw-authority +solana withdraw-stake --withdraw-authority \ + --fee-payer ``` -`` is the existing stake account, `` is the -withdraw authority, and `` is the number of tokens to transfer to -``. +`` is the existing stake account, the stake authority +`` is the withdraw authority, and `` is the number of tokens +to transfer to ``. ## Split Stake @@ -184,12 +192,14 @@ currently staked, cooling down, or locked up. To transfer tokens from an existing stake account to a new one, use the `solana split-stake` command: ```bash -solana split-stake --stake-authority +solana split-stake --stake-authority \ + --fee-payer ``` -`` is the existing stake account, `` is the -stake authority, `` is the keypair for the new account, -and `` is the number of tokens to transfer to the new account. +`` is the existing stake account, the stake authority +`` is the stake authority, `` is the +keypair for the new account, and `` is the number of tokens to transfer +to the new account. To split a stake account into a derived account address, use the `--seed` option. See diff --git a/docs/src/cli/transfer-tokens.md b/docs/src/cli/transfer-tokens.md index b0182f065c..8436646902 100644 --- a/docs/src/cli/transfer-tokens.md +++ b/docs/src/cli/transfer-tokens.md @@ -84,10 +84,10 @@ pubkey: GKvqsuNcnwWqPzzuhLmGi4rzzh55FhJtGizkhHaEJqiV ``` ```bash -solana transfer --from 5 --url http://devnet.solana.com +solana transfer --from 5--url http://devnet.solana.com --fee-payer ``` -where you replace `` with the path to a keypair in your wallet, +where you replace `` with the path to a keypair in your wallet, and replace `` with the output of `solana-keygen new` above. Confirm the updated balances with `solana balance`: @@ -107,7 +107,7 @@ tokens to transfer. Once you have that collected, you can transfer tokens with the `solana transfer` command: ```bash -solana transfer --from +solana transfer --from --fee-payer ``` Confirm the updated balances with `solana balance`: