import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({
contract,
method: "function addLiquidity(address pool, (address token, uint256 amount)[] inputs, bytes data, uint256 minLiquidity, address callback, bytes callbackData) payable returns (uint256 liquidity)",
params: [pool, inputs, data, minLiquidity, callback, callbackData]
});
const { transactionHash } = await sendTransaction({
transaction,
account
});