Links
💰

Balances API

v0/addresses/:address/balances

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

Example Use Cases

Human-readable domain names are great for social applications and tracking purposes. Some example use cases:
  • Portfolio tracking
  • Tax reporting
  • Blockchain explorers
  • Wallets

Code Samples

getNames.js
const axios = require('axios')
const url = "https://api.helius.xyz/v0/addresses/<address>/balances?api-key=<your-key>"
const getBalances = async () => {
const { data } = await axios.get(url)
console.log("balances: ", data)
}
getBalances()