Base configuration for the instruction
Parameters for the approval
Promise resolving to array of instructions
const instructions = await buildApprove(
{ account: myMultichainAccount },
{
chainId: 1,
tokenAddress: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", // USDC
amount: 1000000n, // 1 USDC
gasLimit: 50000n,
spender: "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}
);
Builds an instruction for approving token spending. This is typically used when the token doesn't support ERC20Permit and a standard approve transaction is needed.