diff --git a/_code-samples/batch/js/multiAccountBatch.js b/_code-samples/batch/js/multiAccountBatch.js index 575967a4e0..e35e694dcf 100644 --- a/_code-samples/batch/js/multiAccountBatch.js +++ b/_code-samples/batch/js/multiAccountBatch.js @@ -53,6 +53,7 @@ const batchTx = { TransactionType: "Batch", Account: thirdPartyWallet.address, Flags: BatchFlags.tfAllOrNothing, // tfAllOrNothing: All inner transactions must succeed + // Must include a minimum of 2 transactions and a maximum of 8 transactions. RawTransactions: [ { RawTransaction: charliePayment }, { RawTransaction: bobPayment }, diff --git a/_code-samples/batch/js/singleAccountBatch.js b/_code-samples/batch/js/singleAccountBatch.js index a7a069d7b1..6ab0b10591 100644 --- a/_code-samples/batch/js/singleAccountBatch.js +++ b/_code-samples/batch/js/singleAccountBatch.js @@ -51,6 +51,7 @@ const batchTx = { TransactionType: "Batch", Account: sender.address, Flags: BatchFlags.tfAllOrNothing, // tfAllOrNothing: All inner transactions must succeed + // Must include a minimum of 2 transactions and a maximum of 8 transactions. RawTransactions: [ { RawTransaction: payment1 }, { RawTransaction: payment2 } diff --git a/docs/references/protocol/transactions/types/batch.md b/docs/references/protocol/transactions/types/batch.md index d7d0df0274..2482a9834f 100644 --- a/docs/references/protocol/transactions/types/batch.md +++ b/docs/references/protocol/transactions/types/batch.md @@ -121,12 +121,12 @@ In this example, two users are atomically swapping their tokens: XRP for GKO. | Field | JSON Type | [Internal Type][] | Required? | Description | |:------------------|:----------|:------------------|:----------|:------------| | `Flags` | Number | UInt32 | Yes | A bit-flag for this transaction. Exactly one must be specified to represent the batch mode of the transaction. See: [Batch Flags](#batch-flags). | -| `RawTransactions` | Array | Array | Yes | The list of transactions to apply. | +| `RawTransactions` | Array | Array | Yes | The list of transactions to apply. See [RawTransactions](#rawtransactions). | | `BatchSigners` | Array | Array | No | The signatures authorizing a multi-account `Batch` transaction. | ### RawTransactions -`RawTransactions` contains the list of inner transactions to be applied. There can be up to 8 transactions included. These transactions can come from one account or multiple accounts. +`RawTransactions` contains the list of inner transactions to be applied. There must be a minimum of **2** transactions and a maximum of **8** transactions. These transactions can come from one account or multiple accounts. Each inner transaction: diff --git a/docs/tutorials/how-tos/use-batch-transactions/send-a-multi-account-batch-transaction.md b/docs/tutorials/how-tos/use-batch-transactions/send-a-multi-account-batch-transaction.md index 60ebc74a95..6db5916b98 100644 --- a/docs/tutorials/how-tos/use-batch-transactions/send-a-multi-account-batch-transaction.md +++ b/docs/tutorials/how-tos/use-batch-transactions/send-a-multi-account-batch-transaction.md @@ -86,7 +86,7 @@ Create the Batch transaction and provide the inner transactions. The key fields | TransactionType | The type of transaction, in this case `Batch`.| | Account | The wallet address of the account that is sending the Batch transaction. | | Flags | The flags for the Batch transaction. For this example the transaction is configured with the `tfAllOrNothing` (0x00010000) flag to ensure that either all inner transactions succeed or they all fail atomically. See [Batch Flags](../../../references/protocol/transactions/types/batch.md#batch-flags) for other options. | -| RawTransactions | Contains the list of inner transactions to be applied. There can be up to **8** transactions included. These transactions can come from one account or multiple accounts. | +| RawTransactions | Contains the list of inner transactions to be applied. Must include a minimum of **2** transactions and a maximum of **8** transactions. These transactions can come from one account or multiple accounts. | | BatchSigners | The list of signatures required for the Batch transaction. This is required because there are multiple accounts' transactions included in the batch. | {% tabs %} diff --git a/docs/tutorials/how-tos/use-batch-transactions/send-a-single-account-batch-transaction.md b/docs/tutorials/how-tos/use-batch-transactions/send-a-single-account-batch-transaction.md index 5689e63d07..d7e48c2012 100644 --- a/docs/tutorials/how-tos/use-batch-transactions/send-a-single-account-batch-transaction.md +++ b/docs/tutorials/how-tos/use-batch-transactions/send-a-single-account-batch-transaction.md @@ -88,7 +88,7 @@ Create the Batch transaction and provide the inner transactions. The key fields | TransactionType | The type of transaction, in this case `Batch`.| | Account | The wallet address of the account that is sending the Batch transaction. | | Flags | The flags for the Batch transaction. For this example the transaction is configured with the `tfAllOrNothing` (0x00010000) flag to ensure that either all inner transactions succeed or they all fail atomically. See [Batch Flags](../../../references/protocol/transactions/types/batch.md#batch-flags) for other options. | -| RawTransactions | Contains the list of inner transactions to be applied. There can be up to **8** transactions included. These transactions can come from one account or multiple accounts. | +| RawTransactions | Contains the list of inner transactions to be applied. Must include a minimum of **2** transactions and a maximum of **8** transactions. These transactions can come from one account or multiple accounts. | {% tabs %} {% tab label="Javascript" %}