tryBlockAndAggregate

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

Example

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