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