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
Base parameters for the instruction
Parameters for the batch instruction
The built instruction
const instructions = await buildBatch( { account: myMultichainAccount }, { instructions: [buildApprove, buildSwap] }) Copy
const instructions = await buildBatch( { account: myMultichainAccount }, { instructions: [buildApprove, buildSwap] })
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