Skip to main content

Get Balances

The root URL of the Ultra API's order endpoint is as such.

https://api.jup.ag/ultra/v1/balances
API Reference

To fully utilize the Ultra API, check out the Ultra API Reference.

Get Balances

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