aggregate3Value

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

Example

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

Parameters

The options for the "aggregate3Value" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.