Builds a batch of instructions for a single userOp to be included in a supertransaction UserOps must be on the same chain for the batch to be valid
const instructions = await buildBatch( { account: myMultichainAccount }, { instructions: [buildApprove, buildSwap] }) Copy
const instructions = await buildBatch( { account: myMultichainAccount }, { instructions: [buildApprove, buildSwap] })
Base parameters for the instruction
Parameters for the batch instruction
The built instruction
Builds a batch of instructions for a single userOp to be included in a supertransaction UserOps must be on the same chain for the batch to be valid
Example