@ledgerhq/coin-canton
Version:
10 lines • 457 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBalance = getBalance;
const node_1 = require("../../network/node");
// Could be getAccountInfo so it is used in both bridge and api
async function getBalance(address) {
const accountInfo = await (0, node_1.getAccountInfo)(address);
return [{ asset: { type: "native" }, value: BigInt(accountInfo.account_data.Balance) }];
}
//# sourceMappingURL=getBalance.js.map