@ledgerhq/coin-stellar
Version:
Ledger Stellar Coin integration
10 lines • 398 B
JavaScript
;
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