BaseInstructionsParams Base configuration
BuildIntentParameters Bridge configuration
Promise resolving to an array of Instruction
const bridgeIntentInstructions = await buildIntent(
{
account: myMultichainAccount,
currentInstructions: []
},
{
amount: BigInt("1000000"), // 1 USDC
mcToken: mcUSDC,
chain: optimism
}
);
Builds bridge intent instructions by checking unified token balance and creating necessary bridge operations