LogoLogo
x1.xyzValidatorsExplorerTPSX
  • Introduction to X1
    • The constitution of X1
  • Technicals
    • Zero-cost votes
    • Dynamic base fees
    • Technical roadmap
      • SVM capacity scaling
      • Homomorphic encryption
      • Stake, performance, and randomness-based leader selection
      • Scaling through reductionism
  • Validating
    • Create a read-only node
    • Create a validator node
    • Network upgrades
      • Tachyon 2.0
        • Advanced Notes
    • Staking functions
    • Performance
      • Hardware requirements
      • Ping validator
      • Node maintenance
    • Cluster
    • Community
    • Misc commands
    • Testnet faucet
    • Validator rewards
  • Get XN
  • Build on X1
    • Resources
    • Create programs on X1
    • Metaplex
  • Wallets
    • Backpack
Powered by GitBook
On this page
  • Stake
  • Deactivate stake
  • Withdraw stake
  • Delegate a stake (to someone else)
Export as PDF
  1. Validating

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.

PreviousAdvanced NotesNextPerformance

Last updated 5 months ago