Prepares a transaction to call the "multicall" function on the contract.
import { sendTransaction } from "thirdweb";import { multicall } from "thirdweb/extensions/common"; const transaction = multicall({ contract, data: ..., overrides: { ... }}); // Send the transactionawait sendTransaction({ transaction, account });
function multicall( options: BaseTransactionOptions< MulticallParams | { asyncParams: () => Promise<MulticallParams> } >,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for the "multicall" function.
let options: BaseTransactionOptions< MulticallParams | { asyncParams: () => Promise<MulticallParams> }>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
A prepared transaction object.