Failed Transactions Fees
Transaction cost applies when a transaction is included in a validated ledger, even if it fails with a tec code. The fee is only debited when the transaction becomes part of a validated ledger. If failure is final and not relayed, it is not included and does not affect balances.
Every signed transaction must include a Fee value. The ledger executes transactions exactly as signed, so the exact Fee specified is destroyed even if it is higher than the current minimum. It is recommended to look up current load-based costs before signing and to set LastLedgerSequence so a transaction can expire if needed.
rippled uses load-based thresholds. If a transaction’s Fee is below a server’s local load cost, that server ignores the transaction and does not relay it. If the Fee meets local load cost but not the open ledger cost, the transaction may be queued for a later ledger.
FAQ
Is the Fee field changeable after signing?
No. Like other signed fields, changing Fee invalidates the signature.
Can I overpay fees?
Yes. The ledger destroys exactly what you sign, even if it is higher than the minimum.


