Get Balances
Fetch the balances of a Stellar account using the Blux core SDK.
The getBalances function returns the balances of a Stellar account. Omit address to use the connected account, and omit network to use the currently active network.
Type
type GetBalancesOptions = {
address?: string; // Ignore to get the details of the connected account.
network?: string; // Ignore to use the current active network
includeZeroBalances?: boolean;
};
type GetBalancesResult = Horizon.HorizonApi.BalanceLine[];Usage
import { core } from "@bluxcc/core";
const result = await core.getBalances({});