UNPKG

@ledgerhq/coin-stellar

Version:
10 lines 398 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBalance = void 0; const network_1 = require("../network"); async function getBalance(addr) { const { balance } = await (0, network_1.fetchAccount)(addr); return [{ value: BigInt(balance.toString()), asset: { type: "native" } }]; } exports.getBalance = getBalance; //# sourceMappingURL=getBalance.js.map