CAVYAR

CAVYAR AI

Unverify Creator with Umi

Verify Creator
Verify
Verified Creator

A creator whose verified flag is false could have been added by anyone and, therefore, cannot be trusted. On the other hand, a creator whose verified flag is true is guaranteed to have signed a transaction that verified them as a creator of that asset.

import { mplTokenMetadata, unverifyCreatorV1, } from "@metaplex-foundation/mpl-token-metadata"; import { generateSigner, publicKey } from "@metaplex-foundation/umi"; import { createUmi } from "@metaplex-foundation/umi-bundle-defaults"; const umi = createUmi("https://api.mainnet-beta.solana.com", "processed").use( mplTokenMetadata() ); const metadata = publicKey("YourMetadataAccount"); // Address of the NFTs metadata account const creator = generateSigner(umi); // The creator we are trying to verify as a Signer. await unverifyCreatorV1(umi, { metadata, authority: creator, }).sendAndConfirm(umi)

CAVYAR AI

CAVYAR AI is in its earliest stages of development and the quality of generated descriptions will improve massively over time. At this stage, there is a risk of false information being generated.

The given code snippet is used to unverify a creator using the Umi framework in Solana.

Explanation:

  • The code imports the necessary modules from the "@metaplex-foundation/mpl-token-metadata" and "@metaplex-foundation/umi" packages.
  • It creates a Umi instance by calling the createUmi function with the Solana API endpoint and the network environment as parameters. The mplTokenMetadata plugin is added to the Umi instance using the use method.
  • The publicKey function is used to obtain the public key of the NFT's metadata account and assign it to the metadata variable.
  • The generateSigner function is used to generate a signer for the creator using the Umi instance, and the signer is assigned to the creator variable.
  • The unverifyCreatorV1 function is called with the Umi instance and an object containing the metadata and authority (creator) parameters. This function is used to unverify the creator by setting the verified flag to false.
  • The sendAndConfirm method is called on the returned transaction object to send and confirm the transaction using the Umi instance.

In summary, the code snippet unverifies a creator by setting the verified flag to false using the Umi framework in Solana.

Ask

Soon™

Created by:

Axax...GsG2

Give this snippet a feedback!

Published on

April 24, 2025

Want to support the author?