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,
});

Parameters

Returns

  • The prepared transaction to set the contract metadata.