Skip to content
Docs
Open app
Skip to Content

Read vSUI data

Read the vSUI exchange rate, APY, pool size and validators from Volo’s public stats API.

  • HTTP, any language
  • No API key

The figures below are fetched from the stats API in your browser and refresh every 30 seconds.

Live vSUI data
Loading…
Exchange rate
—
SUI per vSUI
APY
—
Annualized, before fees
Total staked
—
vSUI supply
—
Stakers
—
Sui epoch
—

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/stats
read-data.ts
type 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 dataMeaning
exchangeRateSUI represented by one vSUI, before any transaction-specific fee
apyAnnualized staking yield as a fraction. Multiply by 100 for a percentage.
totalStakedSUI staked through the pool
totalSupplyvSUI in circulation
totalStakersNumber of staking addresses
currentEpochSui epoch reported by the service, as a string
validatorsValidators in the pool, each with name, address, totalStaked, assigned_weight (percentage of new stake) and apy
maxInstantUnstakeSUI currently available for instant unstaking
lastUpdatedUnix 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:

FunctionReturns
get_ratio_reverseSUI per vSUI, with 9 decimals of precision
get_amount_outThe output of a stake (sui2lst: true) or unstake (false) after fees
total_sui_supply, total_lst_supplyPool totals behind the exchange rate

See the Move API reference for signatures.

On this page