tryAggregate

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

Example

import { tryAggregate } from "thirdweb/extensions/multicall3";
const transaction = tryAggregate({
contract,
requireSuccess: ...,
calls: ...,
overrides: {
...
}
});
// Send the transaction
...
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.