# getBalance()

Returns the asset balance.

  • Interface
class MidaAsset {
    getBalance (): Promise<MidaAssetStatement>;
}
  • Example 1
const eth = await myAccount.getAsset("ETH");
const ethBalance = await eth.getBalance();
  • Example 2
const xau = await myAccount.getAsset("XAU");
const xauBalance = await xau.getBalance();