Skip to main content

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

  1. Create a batch
  2. Create a proposal as a draft
  3. Add transactions to the batch
  4. Activate the proposal
  5. Vote on the proposal
  6. 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 batchIndex and internal transactionIndex

See Also