freezeMetadata

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

Example

import { sendTransaction } from "thirdweb";
import { freezeMetadata } from "thirdweb/extensions/erc1155";
const transaction = freezeMetadata();
// Send the transaction
await sendTransaction({ transaction, account });
function freezeMetadata(

Parameters

The options for the "freezeMetadata" function.

Type

let options: { contract: ThirdwebContract<abi> } & T;

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;

A prepared transaction object.