tryAggregate

Prepares a transaction to call the "tryAggregate" function on the contract.

Example

import { sendTransaction } from "thirdweb";
import { tryAggregate } from "thirdweb/extensions/multicall3";
const transaction = tryAggregate({
contract,
requireSuccess: ...,
calls: ...,
overrides: {
...
}
});
// Send the transaction
await sendTransaction({ transaction, account });
function tryAggregate(
| { asyncParams: () => Promise<TryAggregateParams> }
>,

Parameters

The options for the "tryAggregate" function.

Type

| { asyncParams: () => Promise<TryAggregateParams> }
>;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.