UNPKG

@ledgerhq/coin-stellar

Version:
14 lines 524 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.estimateFees = void 0; const network_1 = require("../network"); /** * Estimate the fees for one transaction * @see {@link https://developers.stellar.org/docs/learn/fundamentals/fees-resource-limits-metering#inclusion-fee} */ async function estimateFees() { const baseFee = await (0, network_1.fetchBaseFee)(); return BigInt(baseFee.recommendedFee); } exports.estimateFees = estimateFees; //# sourceMappingURL=estimateFees.js.map