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