Guides
Stake with a Sanctum LST
Sanctum's validator LSTs run on two stake pool programs: single-validator pools (SP12tWFxD9oJsVWNavTTBZvMbA6gkAmxtVgxdqvyvhY) and multi-validator pools (SPMBzsVUuoHA4Jm6KunbsotaahvVikZs1JyTW6iJvbn). One pair of hooks per program reaches every Sanctum LST that accepts direct SOL deposits and withdrawals:
- Single-validator:
sanctum.single.stakeandsanctum.single.unstake - Multi-validator:
sanctum.multi.stakeandsanctum.multi.unstake
Each hook leaves the LST mint open and takes the stake pool's accounts as caller slots, so you pick the LST in the run form or pass its stake pool address in args.pool. The LST sits in your private balance as a note and gains value against SOL as the pool earns.
You need a private balance holding SOL to stake, or holding the LST to unstake. Enter and leave covers getting one.
Curated pools
The run form lists these pools directly, and also accepts any other direct Sanctum stake pool address on either program.
| Hook pair | Symbol | Stake pool address | LST mint |
|---|---|---|---|
sanctum.single.* | hSOL | 3wK2g8ZdzAH8FJ7PKr2RcvGh7V9VYson5hrVsJM5Lmws | he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A |
sanctum.single.* | dSOL | 9mhGNSPArRMHpLDMSmxAvuoizBqtBGqYdT8WGuqgxNdn | Dso1bDeDjCQxTrWHqUUi63oBvV7Mdm6WaobLbQ7gnPQ |
sanctum.single.* | bbSOL | 2aMLkB5p5gVvCwKkdSo5eZAL1WwhZbxezQr1wxiynRhq | Bybit2vBJGhPF52GBdNaQfUJ6ZpThSgHBobjWZpLPb4B |
sanctum.multi.* | jupSOL | 8VpRhuxa7sUUepdY3kQiTmX9rS5vx4WgaXiAnXq4KCtr | jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v |
sanctum.multi.* | hySOL | hy1oDeVCVRDGkxS26qLVDvRhDpZGfWJ6w9AMvwMegwL | hy1oXYgrBW6PVcJ4s6s2FKavRdwgWTXdfE69AxT7kPT |
sanctum.multi.* | bulkSOL | 3aUmJDNpMHjkxunQEkHTj2chzyryKoH2uQj6YACLD174 | BULKoNSGzxtCqzwTvg5hFJg8fx6dqZRScyXe5LYMfxrn |
Stake
Open the hook
On Balance, under Run a hook, press Stake (Single-Validator) or Stake (Multi-Validator) in the Sanctum group.
Pick the LST pool and amount
Choose an LST from the pool picker, or paste any Sanctum stake pool address for that program. Type how much SOL to stake.
Read the quote and run
The quote shows the LST you receive after the pool's deposit fee, the run fee and the relayer's fee. Press Run. At Done, the LST is in your balance.
const SOL = 'So11111111111111111111111111111111111111112'
const JUPSOL = 'jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v'
const JUPSOL_POOL = '8VpRhuxa7sUUepdY3kQiTmX9rS5vx4WgaXiAnXq4KCtr'
const staked = await pook.run('sanctum.multi.stake', {
in: SOL,
out: JUPSOL,
amount: '100000000', // 0.1 SOL in lamports
args: { pool: JUPSOL_POOL },
})In simulations against mainnet state, 0.1 SOL staked gave 0.081878147 jupSOL (sanctum.multi.stake), 0.083482996 hSOL (sanctum.single.stake), and 0.081532082 dSOL (sanctum.single.stake).
Unstake
Open the hook
On Balance, under Run a hook, press Unstake (Single-Validator) or Unstake (Multi-Validator) in the Sanctum group.
Pick the LST pool and amount
Choose the pool for the LST you hold (or paste its stake pool address) and type how much to unstake.
Read the quote and run
The quote checks the pool's SOL reserve and shows the SOL you receive after the pool's withdrawal fee, the run fee and the relayer's fee. Press Run.
const { assets } = await pook.balance()
const held = assets.find((a) => a.mint === JUPSOL)
const unstaked = await pook.run('sanctum.multi.unstake', {
in: JUPSOL,
out: SOL,
amount: held.amount, // every jupSOL you hold
args: { pool: JUPSOL_POOL },
})The quote
The resolver reads the chosen StakePool account from chain and checks whether direct SOL deposits or withdrawals are open. It applies the pool's solDepositFee on stake or solWithdrawalFee on unstake, and on unstake it checks that the pool's reserveStake holds enough SOL to cover the withdrawal. If the pool restricts direct deposits or withdrawals, or its reserve is too low for the requested amount, the quote returns NO_ROUTE.
If the pool has not been updated for the current epoch, the resolver attaches the stake pool program's permissionless UpdateStakePoolBalance instruction beside the run so the transaction succeeds without a separate step. minimumOut applies your slippageBps to expectedOut, and the run fee and the relayer's fee come off what the run returns: Fees and POOK gives the rates.
What the run does at Sanctum
sanctum.single.stake and sanctum.multi.stake call DepositSol (instruction tag 14): native SOL leaves Pook's stage into the pool's reserve and the pool mints the LST into the stage's token account. sanctum.single.unstake and sanctum.multi.unstake call WithdrawSol (instruction tag 16): the LST is burned from the stage and native SOL returns from the pool's reserve in the same transaction.
Measured on a local network running the mainnet programs:
| Hook | Compute units | Accounts |
|---|---|---|
sanctum.single.stake | 380,177 | 26 |
sanctum.single.unstake | 308,439 | 27 |
sanctum.multi.stake | 366,554 | 26 |
sanctum.multi.unstake | 312,742 | 27 |
What the chain shows
Each run shows the hook, the chosen stake pool, the amount in and the amount out. The stake pool records a deposit or a withdrawal made by Pook's stage, the same address for every holder. Your wallet is in neither.