Patch Contract Metadata

Patch Contract Metadata

Modify certain metadata fields for a contract , while keeping the other previously defined fields intact.

client.projectContractMetadata.patch.mutate({
    chainId: 130130,
    address: "0xD7bA09F9787Aa6FF2c41B16c557Ff20d0D2901cB",
    metadata: {
        name: "New Collection Name",
        // add any metadata field you would like to add or modify
    },
});

Required fields:

  • chainId: Id of the chain you selected when creating your project.
  • address: Address of the contract (collection).
  • At least one metadata field (name, description, image, etc...).

Optional fields: See Patch project contract metadata (opens in a new tab)