setFee

Sets the exact total fee for the transaction.

This method allows precise control over the fee. Generally, it's better to use setBaseFee which automatically calculates the fee based on the number of operations.

Validation

  • Must be greater than or equal to the inner transaction's fee

  • Cannot be set if setBaseFee was already called

Return

This builder for method chaining

Parameters

fee

The total fee in stroops

Throws

if setBaseFee was already called