Get Balances
note
Lite URL: https://lite-api.jup.ag/ultra/v1/balances
Dynamic URL: https://api.jup.ag/ultra/v1/balances
Dynamic Rate Limits are now applied to Ultra API.
- No Pro plans or payment needed.
- Simply generate the universal API Key via Portal
- Rate limits scale together with your swap volume.
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://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"
}