aggregate3

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

Example

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

Parameters

The options for the "aggregate3" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.