blockAndAggregate

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

Example

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

Parameters

The options for the "blockAndAggregate" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.