Links
💰

Balances API

Retrieve a unified balance for Solana accounts.

v0/addresses/:address/balances

Returns the native Solana balance (in lamports) and all token balances for a given address.
Use https://api-devnet.helius.xyz/v0/addresses/{address}/balances for devnet balances
get
https://api.helius.xyz
/v0/addresses/{address}/balances
Returns the native balance and token balances for a given address.

Code Samples

getNames.js
const url = "https://api.helius.xyz/v0/addresses/<address>/balances?api-key=<your-key>";
​
const getBalances = async () => {
const response = await fetch(url);
const data = await response.json();
console.log("balances: ", data);
};
​
getBalances();