Beta 
the ValidContractInstance instance of the contract to get the metadata for
a response object that includes the contract metadata of the deployed contract
const Component = () => {
  const { contract } = useContract("{{contract_address}}");
  const {
    mutate: updateContractMetadata,
    isLoading,
    error,
  } = useContractMetadataUpdate(contract);
  if (error) {
    console.error("failed to update contract metadata", error);
  }
  return (
    <button
      disabled={isLoading}
      onClick={() => updateContractMetadata({ name: "New name", description: "New description" })}
    >
      Update contract metadata
    </button>
  );
};
ContractMetadata
Generated using TypeDoc
Update the metadata of this contract