CCC Docs
    Preparing search index...

    Type Alias FeePayerCompleteFeeChangeFn

    FeePayerCompleteFeeChangeFn: (
        tx: Transaction,
        capacity: Num,
    ) => Promise<NumLike> | NumLike

    A function that modifies a transaction to handle the change after paying the fee.

    Type declaration

      • (tx: Transaction, capacity: Num): Promise<NumLike> | NumLike
      • Parameters

        • tx: Transaction

          The transaction to modify.

        • capacity: Num

          The excess capacity available for the change.

        Returns Promise<NumLike> | NumLike

        The additional capacity needed if the excess capacity is insufficient, or 0 if the fee is paid.