curl --request GET \
--url 'https://api.rango.exchange/basic/balance?blockchain=BSC&address=0xeb2629a2734e272bcc07bda959863f316f4bd4cf&apiKey=c6381a79-2817-4602-83bf-6a641a409e32'
Note that this endpoint is slow since it queries for all tokens an address is holding and balance of each one. We recommend to use single token balance endpoint whenever possible.
Balance Request
blockchain* String
Description: The desired blockchain.
address* String
Description: User wallet address for the desired blockchain.
export type WalletAddress = {
blockchain: string
address: string
};
Balance Response
wallets
Description: List of wallet assets
export type WalletDetailsResponse = {
wallets: WalletDetail[]
}
export type WalletDetail = {
failed: boolean
blockChain: string
address: string
balances: AssetAndAmount[] | null
explorerUrl: string
}
export type AssetAndAmount = {
amount: Amount
asset: Asset
}
export type Amount = {
amount: string
decimals: number
}
export type Asset = {
blockchain: string
address: string | null
symbol: string
}