XRP Ledger news · Tokens and stablecoins

Gateway Bulletin: Setting Trust Line Quality with SendMax

In plain words

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.

Written by zerps in plain words, from the source linked below.
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

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.