Read vSUI data
Read the vSUI exchange rate, APY, pool size and validators from Volo’s public stats API.
The figures below are fetched from the stats API in your browser and refresh every 30 seconds.
Source: GET https://open-api.naviprotocol.io/api/volo/stats, refreshed every 30 seconds.
Query the stats API
The endpoint needs no API key or wallet and allows requests from any origin, so you can call it from a backend or directly from a web app.
curl --fail --silent --show-error https://open-api.naviprotocol.io/api/volo/statstype VoloStats = {
exchangeRate: number; // SUI per vSUI
apy: number; // decimal fraction: 0.012 is 1.2%
totalStaked: string; // SUI, decimal string
totalSupply: string; // vSUI, decimal string
totalStakers: number;
currentEpoch: string;
maxInstantUnstake: string; // SUI available for instant unstaking
validators: { name: string; address: string; assigned_weight: string; apy: string }[];
lastUpdated: number; // Unix ms
};
export async function getVoloStats(): Promise<VoloStats> {
const response = await fetch('https://open-api.naviprotocol.io/api/volo/stats');
if (!response.ok) throw new Error(`Volo stats request failed: ${response.status}`);
const { data } = (await response.json()) as { data: VoloStats };
if (Date.now() - data.lastUpdated > 10 * 60_000) throw new Error('Volo stats are stale');
return data;
}
const stats = await getVoloStats();
console.log(`1 vSUI = ${stats.exchangeRate} SUI, APY ${(stats.apy * 100).toFixed(2)}%`);
console.log(`12.5 vSUI is worth about ${(12.5 * stats.exchangeRate).toFixed(4)} SUI`);The response wraps the result in a data object. Token amounts are decimal strings in whole SUI or vSUI, not base units.
Field under data | Meaning |
|---|---|
exchangeRate | SUI represented by one vSUI, before any transaction-specific fee |
apy | Annualized staking yield as a fraction. Multiply by 100 for a percentage. |
totalStaked | SUI staked through the pool |
totalSupply | vSUI in circulation |
totalStakers | Number of staking addresses |
currentEpoch | Sui epoch reported by the service, as a string |
validators | Validators in the pool, each with name, address, totalStaked, assigned_weight (percentage of new stake) and apy |
maxInstantUnstake | SUI currently available for instant unstaking |
lastUpdated | Unix timestamp in milliseconds |
Check lastUpdated before displaying the data. If the request fails or the data is stale, show the time of the last successful response or mark the figures as unavailable.
Read on-chain instead
The API is for display. Inside a transaction, or when you need the exact figure at a given checkpoint, call the view functions on the StakePool:
| Function | Returns |
|---|---|
get_ratio_reverse | SUI per vSUI, with 9 decimals of precision |
get_amount_out | The output of a stake (sui2lst: true) or unstake (false) after fees |
total_sui_supply, total_lst_supply | Pool totals behind the exchange rate |
See the Move API reference for signatures.