Skip to content

getAllBalances

Returns all known balances for a given account.

Usage

example.ts
import { client, account } from './config'
 
const balances = await client.getAllBalances({
  account
});

Returns

GetAllBalancesReturnType

Array of all known balances for an address.

Parameters

account

  • Type: Account | Address

The Account used for check.

Accepts a JSON-RPC Account or Local Account (Private Key, etc).

const balances = await client.getAllBalances({
  account: "0x36615Cf349d7F6344891B1e7CA7C72883F5dc049"
});