Skip to content

Commit 4a08ad0

Browse files
committed
Mention minimum number of transactions required in a Batch
1 parent 3e41224 commit 4a08ad0

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

_code-samples/batch/js/multiAccountBatch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const batchTx = {
5353
TransactionType: "Batch",
5454
Account: thirdPartyWallet.address,
5555
Flags: BatchFlags.tfAllOrNothing, // tfAllOrNothing: All inner transactions must succeed
56+
// Must include a minimum of 2 transactions and a maximum of 8 transactions.
5657
RawTransactions: [
5758
{ RawTransaction: charliePayment },
5859
{ RawTransaction: bobPayment },

_code-samples/batch/js/singleAccountBatch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const batchTx = {
5151
TransactionType: "Batch",
5252
Account: sender.address,
5353
Flags: BatchFlags.tfAllOrNothing, // tfAllOrNothing: All inner transactions must succeed
54+
// Must include a minimum of 2 transactions and a maximum of 8 transactions.
5455
RawTransactions: [
5556
{ RawTransaction: payment1 },
5657
{ RawTransaction: payment2 }

docs/references/protocol/transactions/types/batch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ In this example, two users are atomically swapping their tokens: XRP for GKO.
126126

127127
### RawTransactions
128128

129-
`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.
129+
`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.
130130

131131
Each inner transaction:
132132

docs/tutorials/how-tos/use-batch-transactions/send-a-multi-account-batch-transaction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Create the Batch transaction and provide the inner transactions. The key fields
8686
| TransactionType | The type of transaction, in this case `Batch`.|
8787
| Account | The wallet address of the account that is sending the Batch transaction. |
8888
| 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. |
89-
| 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. |
89+
| 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. |
9090
| BatchSigners | The list of signatures required for the Batch transaction. This is required because there are multiple accounts' transactions included in the batch. |
9191

9292
{% tabs %}

docs/tutorials/how-tos/use-batch-transactions/send-a-single-account-batch-transaction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Create the Batch transaction and provide the inner transactions. The key fields
8888
| TransactionType | The type of transaction, in this case `Batch`.|
8989
| Account | The wallet address of the account that is sending the Batch transaction. |
9090
| 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. |
91-
| 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. |
91+
| 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. |
9292

9393
{% tabs %}
9494
{% tab label="Javascript" %}

0 commit comments

Comments
 (0)