BaseInstructionsParams Base configuration for instructions
BuildInstructionTypes The build action configuration
Promise resolving to an array of Instruction
// Bridge tokens example
const bridgeInstructions = await build(
  { account: myMultichainAccount },
  {
    type: "intent",
    data: {
      amount: BigInt(1000000),
      mcToken: mcUSDC,
      chain: optimism
    }
  }
);
// Default action example
const defaultInstructions = await build(
  { account: myMultichainAccount },
  {
    type: "default",
    data: {
      instructions: myExistingInstruction
    }
  }
);
Builds transaction instructions based on the provided action type and parameters