Overview
Batch accounts store a collection of vault transactions, allowing them to be voted on and executed with minimal actions through a single proposal.Quick Example
PDA Derivation
A batch account is derived with these seeds (same as transactions):Account Fields
Batch Workflow
- Create a batch
- Create a proposal as a draft
- Add transactions to the batch
- Activate the proposal
- Vote on the proposal
- Execute the proposal
Internal Transaction Indexing
Batches have their own internal transaction index context:- The batch itself uses a global
transactionIndex(like other transactions) - Transactions within the batch use an internal index starting at 1
- When adding transactions, specify both the global
batchIndexand internaltransactionIndex