Skip to main content
Preview the output of an unstake without committing. Use this to show price impact and output amount to a user before they sign anything. Quotes are non-binding: pool state drifts between quote and unstake. Treat the returned outAmount and priceImpactPct as live estimates.
There is no quote endpoint for staking into a strategy. Stake quotes are deterministic: amount in equals amount out at the current receipt rate. Use GET /api/v1/strategies/{key} to read the rate and compute locally.

Request


Response — sol-liquid-stake


Response — sol-native-stake (instant)

Same shape as liquid; the input “asset” is SOL because the active stake account is being settled to SOL via Sanctum’s depositStake. kind: "instant" indicates this is a Sanctum-routed instant unstake quote (the only kind that can be quoted; deactivate does not have liquidity-based pricing).

Response — sol-leveraged-stake

Previews burning raSOL Max LP back to raSOL. amount is the LP to burn; path is the redemption route the unstake would take.
There is no leveraged deposit quote: the SOL → raSOL mint is a deterministic floor-division from the live pool snapshot, so there’s nothing to preview. To estimate the SOL you’d ultimately receive (rather than raSOL), feed outAmount into a sol-liquid-stake quote.

Errors


See also

POST /unstake

Build the actual unstake transaction.

GET /strategies/:key

Read the current exchange rate.