Skip to content

Commit 5654b4a

Browse files
author
Filippo
committed
added info
1 parent 594a458 commit 5654b4a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/learn/learn-transactions.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,21 @@ Vesting funds are on a release schedule that unlocks a constant number of tokens
9090
(**linear vesting**) or the full amount after a specific block number (**cliff vesting**). In all
9191
vesting cases, the lock decreases over time until all the funds are transferable.
9292

93+
### Batch Transfers
94+
95+
Batch transfers are transfers that include multiple calls. The `utility` pallet is used to dispatch batched calls, and there are three ways of doing it:
96+
- `utility.batch()`: stops execution if it encounters an error and emits an event with the number of executed calls and the error of the failed call.
97+
- `utility.batchAll()`: atomic batch execution, meaning that if a call within the batch fails, everything is rolled back as if nothing happened.
98+
- `utility.forceBatch()`: All calls before and after one fails will be executed.
99+
100+
| Function | Stops on Error | Atomic | Events for Debugging |
101+
|--------|--------|--------|--------|
102+
| `batch`| Yes | No | Yes |
103+
| `batchAll`| Yes | Yes | Not needed |
104+
|`forceBatch`| No | No | No |
105+
106+
For more detailed information about the arguments accepted by each of these calls, see [the Metadata Explorer](../general/metadata.md).
107+
93108
## Verifying Extrinsics
94109

95110
!!!danger

0 commit comments

Comments
 (0)