Skip to main content

Get Balances (Deprecated)

warning

This Ultra endpoint is not maintained in favour of the Get Holdings endpoint, please use that instead.

Get Balances (Deprecated)

The Ultra API supports a simple endpoint to get the token balances of an account, you just need to pass in the required parameter of the user's wallet address.

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"
}