multicall

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

Example

import { multicall } from "thirdweb/extensions/common";
const transaction = multicall({
contract,
data: ...,
overrides: {
...
}
});
// Send the transaction
...
function multicall(
MulticallParams | { asyncParams: () => Promise<MulticallParams> }
>,

Parameters

The options for the "multicall" function.

Type

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

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.