Send a Multi-Account Batch Transaction
This guide shows how to build a Batch transaction that holds transactions from several accounts. Each of those accounts must sign the Batch, and any account can submit it, even one that takes no part in the inner transactions.
- Section
- Tutorials
What you will do
In the example, two accounts each owe a third account the same amount of XRP. A separate party, such as a payment processor, submits both payments as one Batch. The Batch is set up so that either all inner transactions succeed or they all fail.
What you need
You need a basic understanding of the XRP Ledger and a client library: xrpl.js for JavaScript, xrpl-py for Python or xrpl-go for Go.
The steps in short
Prepare the inner transactions. Each must carry the tfInnerBatchTxn flag, a Fee of 0 and an empty SigningPubKey, because the outer Batch handles the fee and the signing. Create the Batch transaction with the tfAllOrNothing flag and put the inner transactions in RawTransactions, which takes at least 2 and at most 8. Collect a signature on the Batch from every account that sends an inner transaction. These signatures go in the BatchSigners field. The submitting account then signs and sends the Batch.
Check the result
A tesSUCCESS result means the Batch was processed. It does not guarantee that the inner transactions succeeded. With tfAllOrNothing, if any inner transaction fails they all fail, and only the Batch fee is taken from the submitting account. To be sure, calculate the hash of each inner transaction and look it up on the ledger. You can also check that the account balances changed as expected.
Helpers in the libraries
In xrpl.js, signMultiBatch signs the Batch for each account and combineBatchSigners joins the signatures into one signed Batch. In xrpl-py the same jobs are done by sign_multiaccount_batch and combine_batch_signers.
Source: xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made