BTB
/

Sanctum Validator LSTs

Liquid Stakingwebsite
Liquid staking tokens on Solana for validators, minted by Sanctum stake pool programs. An agent can read LST prices and APYs, quote and swap LSTs through the Sanctum API, or deposit SOL and stake accounts into a pool program.

What you can do

stake SOL for LSTDeposit SOL and receive the validator LSTUse the Sanctum API swap quote (GET /swap/token/order) and execute (POST /swap/token/execute) from SOL to the LST mint. Or call DepositSol on the pool program with the pool accounts.
swap LSTSwap between an LST and another tokenGet a quote from GET /swap/token/order without a signer, then request the transaction with a signer and submit it with POST /swap/token/execute.
unstake LSTBurn LST for SOL or a stake accountSwap LST to SOL through the API, or call WithdrawSol or WithdrawStake on the pool program.
Validator LSTs carry the risk of the validator behind them. Poor validator performance lowers the exchange rate.
The programs are upgradeable and controlled by a Sanctum multisig. An upgrade can change behavior.
The program instruction names come from the upstream SPL stake pool. Sanctum runs a fork pinned to v1.0.0. Check the deployed IDL before relying on argument layouts.
The multi validator program has no verified build on at least one third party explorer. Treat its source as unconfirmed.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
SanctumSpl stake pool programstaking on solanaSP12tWFxD9oJsVWNavTTBZvMbA6gkAmxtVgxdqvyvhY
write DepositSol(u64)
Solana instruction: deposit SOL into the pool reserve and mint pool tokens (the LST) at the current ratio. Argument: lamports to deposit.
write DepositSolWithSlippage
Solana instruction: same as DepositSol but fails if fewer than the minimum pool tokens are minted.
write WithdrawSol(u64)
Solana instruction: burn pool tokens and withdraw SOL from the reserve. Argument: pool tokens to burn.
write WithdrawSolWithSlippage
Solana instruction: same as WithdrawSol but fails if less than the minimum lamports are returned.
write DepositStake
Solana instruction: deposit a user stake account into the pool and mint pool tokens.
write DepositStakeWithSlippage
Solana instruction: same as DepositStake with a minimum pool token amount.
write WithdrawStake(u64)
Solana instruction: burn pool tokens and withdraw a stake account from a validator or the reserve. Argument: pool tokens to burn.
write WithdrawStakeWithSlippage
Solana instruction: same as WithdrawStake with a minimum lamports output.
write UpdateValidatorListBalance
Solana instruction: update validator and transient stake balances. Permissionless crank that keeps the pool price current.
write UpdateStakePoolBalance
Solana instruction: recalculate the total pool balance from the reserve and the validator list.
SanctumSplMulti stake pool program (multi validator)staking on solanaSPMBzsVUuoHA4Jm6KunbsotaahvVikZs1JyTW6iJvbn
write DepositSol(u64)
Solana instruction: deposit SOL into the pool reserve and mint pool tokens (the LST) at the current ratio. Argument: lamports to deposit.
write DepositSolWithSlippage
Solana instruction: same as DepositSol but fails if fewer than the minimum pool tokens are minted.
write WithdrawSol(u64)
Solana instruction: burn pool tokens and withdraw SOL from the reserve. Argument: pool tokens to burn.
write WithdrawSolWithSlippage
Solana instruction: same as WithdrawSol but fails if less than the minimum lamports are returned.
write DepositStake
Solana instruction: deposit a user stake account into the pool and mint pool tokens.
write DepositStakeWithSlippage
Solana instruction: same as DepositStake with a minimum pool token amount.
write WithdrawStake(u64)
Solana instruction: burn pool tokens and withdraw a stake account from a validator or the reserve. Argument: pool tokens to burn.
write WithdrawStakeWithSlippage
Solana instruction: same as WithdrawStake with a minimum lamports output.
write UpdateValidatorListBalance
Solana instruction: update validator and transient stake balances. Permissionless crank that keeps the pool price current.
write UpdateStakePoolBalance
Solana instruction: recalculate the total pool balance from the reserve and the validator list.