blockAndAggregate

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

Example

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