Staking functions

Stake

Transfer XN to stake account:

solana transfer <STAKE_PUBKEY> 1000

Do delegate stake operation:

solana delegate-stake stake.json vote.json

Check condition of a stake:

solana stake-account stake.json

Deactivate stake

Get stake account:

solana account stake.json

Deactivate stake:

solana deactivate-stake <STAKE_PUBKEY>

See un-staking progress:

solana stake-account stake.json

Withdraw stake

solana withdraw-stake <STAKE_ACCOUNT_ADDRESS> <RECIPIENT_ADDRESS> <AMOUNT>

Leave some XN for unstaking fee.

Delegate a stake (to someone else)

Create a new stake account

Include the vote account of the one you want to stake to.

solana-keygen new --no-passphrase -o ~/.config/solana/stake_<VOTE_PUBKEY>.json

Create stake account on ledger and send XN/SOL to it

solana create-stake-account stake_<VOTE_PUBKEY>.json 1000

Delegate stake

solana delegate-stake stake_<VOTE_PUBKEY>.json <VOTE_PUBKEY>

Check stake

solana stakes <VOTE_PUBKEY>

You cant ad to an ongoing stake. Either unstake, let the epoch run and stake again or create a new stake account and stake separately without unstaking anything.

Last updated