Docs

setContractMetadata

Sets the metadata for a contract.

Example

import { setContractMetadata } from "@thirdweb/extensions/common";
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.