4747import java .util .Arrays ;
4848import java .util .Map ;
4949import java .util .Objects ;
50- import java .util .Optional ;
5150import java .util .Set ;
5251
5352/**
@@ -130,12 +129,17 @@ public static ComputedNetworkFees computeMultisigNetworkFees(
130129 * Calculate a suggested fee to be used for submitting a transaction to the XRPL. The calculated value depends on the
131130 * current size of the job queue as compared to its total capacity.
132131 *
132+ * <p>This returns the base fee levels for a plain, single-signed transaction, and is correct on its own only for
133+ * transaction types that cost exactly the base fee. For anything with a different fee shape — a multi-signed or
134+ * sponsored transaction, or a type with its own rule ({@link Batch}, {@code EscrowFinish} with a fulfillment,
135+ * confidential MPT, {@code LoanSet}, {@code LoanPay}, {@code AccountDelete}, {@code AMMCreate}) — use
136+ * {@link #computeFee(FeeParams)}, which starts from these same levels and applies the type's rule.
137+ *
133138 * @param feeResult {@link FeeResult} object obtained by querying the ledger (e.g., via an `XrplClient#fee()` call).
134139 *
135140 * @return {@link ComputedNetworkFees} with low, medium and high fee levels to choose from for the transaction.
136141 *
137142 * @see "https://xrpl.org/fee.html"
138- * @see "https://github.com/XRPL-Labs/XUMM-App/blob/master/src/services/LedgerService.ts#L244"
139143 */
140144 public static ComputedNetworkFees computeNetworkFees (final FeeResult feeResult ) {
141145 Objects .requireNonNull (feeResult );
@@ -151,11 +155,6 @@ public static ComputedNetworkFees computeNetworkFees(final FeeResult feeResult)
151155 .build ();
152156 }
153157
154-
155-
156-
157-
158-
159158 /**
160159 * Computes the fee for any transaction, applying whichever of rippled's fee rules its type calls for.
161160 *
0 commit comments