UNPKG

@ledgerhq/coin-canton

Version:
9 lines (7 loc) 398 B
import { Balance } from "@ledgerhq/coin-framework/api/types"; import { getAccountInfo } from "../../network/node"; // Could be getAccountInfo so it is used in both bridge and api export async function getBalance(address: string): Promise<Balance[]> { const accountInfo = await getAccountInfo(address); return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }]; }