install

Installs the BatchMetadataERC721 module on a core contract.

Example

import { BatchMetadataERC721 } from "thirdweb/modules";
const transaction = BatchMetadataERC721.install({
contract: coreContract,
account: account,
});
await sendTransaction({
transaction,
account,
});
function install(options: {
account: Account;
contract: Readonly<ContractOptions<[]>>;
params?: { publisher?: string };

Parameters

Type

let options: {
account: Account;
contract: Readonly<ContractOptions<[]>>;
params?: { publisher?: string };
};

Returns

let returnType: Readonly<options> & {
__contract?: ThirdwebContract<abi>;
__preparedMethod?: () => Promise<PreparedMethod<abiFn>>;
};

the transaction to install the module