💰
Balances API
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.
Human-readable domain names are great for social applications and tracking purposes. Some example use cases:
- Portfolio tracking
- Tax reporting
- Blockchain explorers
- Wallets
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()
Last modified 27d ago