setContractMetadata

Sets the metadata for a contract.

Example

import { setContractMetadata } from "@thirdweb/extensions/common";
import { sendTransaction } from "thirdweb";
const transaction = setContractMetadata({
contract,
name: "My NFT",
symbol: "NFT",
});
// Send the transaction
await sendTransaction({
transaction,
account,
});
function setContractMetadata(

Parameters

The options for setting the contract metadata.

Type

Returns

let returnType: PreparedTransaction<
any,
AbiFunction,
>;
  • The prepared transaction to set the contract metadata.