tryBlockAndAggregate

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

Example

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

Parameters

The options for the "tryBlockAndAggregate" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.