// SPDX-FileCopyrightText: © 2026 LEDGER SAS // SPDX-License-Identifier: Apache-2.0 import type { StellarContext } from '../config' import { fetchBaseFee } from '../network' /** * Estimate the fees for one transaction * @see {@link https://developers.stellar.org/docs/learn/fundamentals/fees-resource-limits-metering#inclusion-fee} */ export async function estimateFees(context: StellarContext): Promise { const config = await context.config() const baseFee = await fetchBaseFee(config) return BigInt(baseFee.recommendedFee) }