Multicall3
OPAggregate
(aggregate)
payable
Use this function in your app
import { prepareContractCall, sendTransaction } from "thirdweb";
const transaction = await prepareContractCall({ contract, method: "function aggregate((address target, bytes callData)[] calls) payable returns (uint256 blockNumber, bytes[] returnData)", params: [calls]});const { transactionHash } = await sendTransaction({ transaction, account});