Skip to main content
Helper methods for advanced operations and fee estimation.

getSwapFeeEstimate(amountSats: number)

Gets the estimated fee for a swap of leaves.
async getSwapFeeEstimate(amountSats: number): Promise<LeavesSwapFeeEstimateOutput>
Parameters:
  • amountSats: The amount of sats to swap.
Returns:
  • Promise<LeavesSwapFeeEstimateOutput>: The estimated fee for the swap.