createWithFee

fun createWithFee(feeSource: String, fee: Long, innerTransaction: Transaction): FeeBumpTransaction

Creates a new FeeBumpTransaction with an exact fee amount.

This method allows you to specify the exact total fee for the transaction. Generally, it's better to use createWithBaseFee which calculates the fee based on the number of operations.

Return

A new FeeBumpTransaction

Parameters

feeSource

The account paying for the transaction fee (G... or M... address)

fee

The maximum fee willing to pay for this transaction (in stroops)

innerTransaction

The inner transaction to wrap

Throws

if the fee is less than the inner transaction's fee