Gateway Bulletin: Setting Trust Line Quality with SendMax
A 2017 bulletin explained how a gateway should set SendMax when it builds payments for customers. The aim is to keep the cost of each payment within what the gateway expects.
- Published
- 2017
What to set
SendMax is the most a payment is allowed to cost the sender. The bulletin recommends setting it to the Amount multiplied by one plus the transfer rate. Or set it as low as possible and leave room only for slippage, so the transaction does not fail. Either way it should be no higher than the most you are willing to send. This does not affect XRP balances.
Checks before sending
Trust line quality can change in the ledger between preparing a transaction and its validation. To avoid sending a payment that fails, check that the trust line exists and that its limit is enough. Also check that optional incoming balances are valued at the right ratio, and that the user has not frozen the trust line.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made