Sets the metadata for a contract.
import { setContractMetadata } from "@thirdweb/extensions/common";import { sendTransaction } from "thirdweb"; const transaction = setContractMetadata({ contract, name: "My NFT", symbol: "NFT",}); // Send the transactionawait sendTransaction({ transaction, account,});
function setContractMetadata( options: BaseTransactionOptions<SetContractMetadataParams>,): PreparedTransaction<any, AbiFunction, PrepareTransactionOptions>;
The options for setting the contract metadata.
let options: BaseTransactionOptions<SetContractMetadataParams>;
let returnType: PreparedTransaction< any, AbiFunction, PrepareTransactionOptions>;
The prepared transaction to set the contract metadata.