Links
💰

Balances API

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
Oops, something is missing.
We could not find the original source to display this content.

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()