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