XRP Ledger Standards
XLS-0055 Final Amendment

Remit

Atomic Multi-Asset Payments for XRPL Protocol Chains

Author
Richard Holland
Created
2023-12-03
Updated
2026-11-30
Discussion
XRPLF/XRPL-Standards/discussions/156

1. Abstract

Remit is a new payment transactor designed for XRPL Protocol Chains, which allows a sender to send multiple currencies and tokens atomically to a specified destination. It is a push payment that delivers "no matter what" and is designed for retail and Hooks use-cases.

2. Specification

XLS-55 depends on the adoption of XLS-35 on the applicable chain.

2.1. Transaction: Remit

2.1.1. Fields

Field Name Required JSON Type Internal Type Default Value Description
TransactionType Yes string UINT16 Remit Identifies this as a Remit transaction.
Account Yes string ACCOUNT N/A The sender.
Destination Yes string ACCOUNT N/A The recipient. Does not need to exist. Will be created if doesn't exist.
DestinationTag No number UINT32 N/A May be used by the destination to differentiate sub-accounts.
Amounts No array Array of Amounts N/A Each of the currencies (if any) to send to the destination. Sender must have funded trustlines for each. Destination does not need trustlines.
URITokenIDs No array Array of URITokenIDs N/A Each of the URITokens (if any) to send to the destination.
MintURIToken No object URIToken N/A If included, an inline URIToken to be created and delivered to the destination, for example a receipt.
Blob No string BLOB N/A A hex blob up to 128 kib to supply to a receiving Hook at the destination.
Inform No string ACCOUNT N/A A third party. If supplied, their Hooks will be weakly executed (but the sender will pay for that execution).
InvoiceID No string HASH256 N/A An arbitrary identifier for this remittance.

Using Remit the sender may send:

  • one or more Issued Currencies (Amounts), and/or,
  • one or more pre-existing URITokens owned by the sender (URITokenIDs) and/or,
  • one new URIToken created in-line as part of the transaction (MintURIToken).

2.1.2. Transaction Fee

TODO: content pass.

2.1.3. Failure Conditions

2.1.3.1. Data Verification

TODO: content pass.

2.1.3.2. Protocol-Level Failures
  1. The transactor does no conversion or pathing, the sender must already have the balances and tokens they wish to send. (TODO: content pass — result code.)

2.1.4. State Changes

On Success (tesSUCCESS):

  1. If the destination does not exist, the sender pays to create it.
  2. If the destination does not have the required trust-lines, the sender pays to create these.
  3. The exact amounts and tokens are always delivered as specified in the transaction, if validated with code tesSUCCESS.
  4. The sender pays all transfer fees on currencies, and the fees are not subtracted from the sent amount.
  5. Where the sender pays to create objects, this is a separate amount not taken from the amounts specified in the transaction.
  6. The transaction is atomic, either all amounts and tokens are delivered in the exact specified amount or none of them are.
  7. When no amounts or tokens are specified, the transaction may still succeed. This can be used to create an account or ensure an account already exists.

2.1.5. Example JSON

{
      "TransactionType" : "Remit",
      "Account" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
      "Destination" : "raod38dcxe6AGWfqxtZjPUfUdyrkWDe7d",
      "Amounts" : [
         {
            "AmountEntry" : {
               "Amount" : "123"
            }
         },
         {
            "AmountEntry" : {
               "Amount" : {
                  "currency" : "USD",
                  "issuer" : "rHb9CJAWyB4rj91VRWn96DkukG4bwdtyTh",
                  "value" : "10"
               }
            }
         },
         {
            "AmountEntry" : {
               "Amount" : {
                  "currency" : "ABC",
                  "issuer" : "rpfZurEGaJvpioTaxYpjh1EAtMXFN1HdtB",
                  "value" : "12"
               }
            }
         }
      ],
      "URITokenIDs" : [
         "C24DAF43927556F379F7B8616176E57ACEFF1B5D016DC896222603A6DD11CE05",
         "5E69C2D692E12D615B5FAC4A41989DA1EA5FD36E8F869B9ECA1121F561E33D2A"
      ],
      "MintURIToken" : {
         "URI" : "68747470733A2F2F736F6D652E757269"
      }
}

2.2. Transaction: AccountSet

Users who do not want to receive Remit transactions can either set the asfDisallowIncomingRemit on their accounts or install a Hook that will regulate incoming Remits.

2.2.1. Fields

The fields of this transaction do not change.

2.2.2. Flags

Flag Name Flag Value Description
asfDisallowIncomingRemit TODO: content pass. Disallows incoming Remit transactions to the account.

2.2.3. Transaction Fee

The fee for this transaction does not change.

2.2.4. Failure Conditions

The failure conditions of this transaction do not change.

2.2.5. State Changes

TODO: content pass.

2.2.6. Example JSON

The JSON format of this transaction does not change.

3. Rationale

TODO: content pass.

4. Security Considerations

Users who receive unwanted Remit transactions can simply burn unwanted URITokens or return unwanted Issued Currencies in order to claim the reserve that was paid by the sender.