Documentation Index
Fetch the complete documentation index at: https://docs.hubra.app/llms.txt
Use this file to discover all available pages before exploring further.
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
| Field | Type | Required | Description |
|---|---|---|---|
strategy | "sol-liquid-stake" | "sol-native-stake" | yes | Which strategy to quote. |
wallet | string | yes | Solana wallet pubkey (base58). |
amount | string | yes | Amount to unstake, decimal string. |
stakeAccount | string | conditional | Required for sol-native-stake: the active stake account being settled. Not used for sol-liquid-stake. |
Response — sol-liquid-stake
| Field | Type | Description |
|---|---|---|
inAsset | string | Asset coming in (raSOL). |
outAsset | string | Asset going out (SOL). |
inAmount | string | Echoed input amount. |
outAmount | string | Estimated SOL out at current pool state. |
priceImpactPct | number | null | Estimated price impact as a fraction (0.0048 = 0.48%). null if the upstream router did not report one. |
Response — sol-native-stake (instant)
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).
Errors
| Status | Slug | When |
|---|---|---|
400 | invalid_request | Missing strategy / wallet / amount, or stakeAccount missing for sol-native-stake. Also returned for usdc-earn (no quote support). |
404 | not_found | Unknown strategy key. |
502 | upstream_error | Sanctum’s quote router could not produce a number (no liquidity, wallet has no on-chain history, etc.). |
503 | service_unavailable | Strategy is announced but not live. |
See also
POST /unstake
Build the actual unstake transaction.
GET /strategies/:key
Read the current exchange rate.