Skip to main content
const balancesResponse = await (
  await fetch(`https://lite-api.jup.ag/ultra/v1/balances/3X2LFoTQecbpqCR7G5tL1kczqBKurjKPHhKSZrJ4wgWc`)
).json();

console.log(JSON.stringify(balancesResponse, null, 2));

Balances Response

The balances response will return a list of token balances for the user’s wallet address. Successful example response:
{
  "SOL": {
    "amount": "0",
    "uiAmount": 0,
    "slot": 324307186,
    "isFrozen": false
  }
}
Failed example response:
{
  "error": "Invalid address"
}