@ledgerhq/coin-stellar
Version:
Ledger Stellar Coin integration
15 lines • 578 B
JavaScript
;
// SPDX-FileCopyrightText: © 2026 LEDGER SAS
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.estimateFees = estimateFees;
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);
}
//# sourceMappingURL=estimateFees.js.map