Guides
Stake with Jito
jito.stake turns SOL in your private balance into JitoSOL. jito.unstake turns JitoSOL back into SOL. The JitoSOL is a note in your balance, and it gains value against SOL as the stake pool earns.
You need a private balance holding SOL. Enter and leave covers getting one.
Stake
Open the hook
On Balance, under Run a hook, press Stake in the Jito group.
Type the amount
The asset in is SOL and the asset out is JitoSOL. Type how much SOL to stake.
Read the quote and run
The quote shows the JitoSOL you receive after the run fee and the relayer's fee. Press Run. At Done, the JitoSOL is in your balance.
const SOL = 'So11111111111111111111111111111111111111112'
const JITOSOL = 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn'
const staked = await pook.run('jito.stake', {
in: SOL,
out: JITOSOL,
amount: '100000000', // 0.1 SOL in lamports
})Unstake
Open the hook
On Balance, under Run a hook, press Unstake in the Jito group.
Type the amount
The asset in is JitoSOL and the asset out is SOL. Type how much JitoSOL to unstake.
Read the quote and run
The quote shows the SOL you receive. Press Run.
const { assets } = await pook.balance()
const held = assets.find((a) => a.mint === JITOSOL)
const unstaked = await pook.run('jito.unstake', {
in: JITOSOL,
out: SOL,
amount: held.amount, // every JitoSOL you hold
})What the run does at Jito
jito.stake calls the stake pool's DepositSol instruction: the SOL goes into the pool's reserve and the pool mints JitoSOL at its current rate. jito.unstake calls WithdrawSol: the JitoSOL is burned and SOL comes out of the pool's reserve in the same transaction, on the pool's own terms. The quote works out expectedOut from the pool's state at that moment.
Both runs complete in one transaction. The SOL from an unstake is in your private balance when the run confirms.
What the chain shows
Each run shows the hook, the stake pool, the amount in and the amount out. The pool records a deposit or a withdrawal made by Pook's stage, the same address for every holder. Your wallet is in neither.