
Unverify Collection NFT with Umi
Once the Collection attribute is set on an NFT, an authority of the Collection NFT can send an Unverify instruction on the Token Metadata to flip its verify attribute from true to false.

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 Solana code snippet is used to unverify a collection NFT using the Umi framework. It performs the following steps:
-
Imports the necessary functions and modules from the "@metaplex-foundation/mpl-token-metadata" and "@metaplex-foundation/umi" packages.
-
Creates an instance of Umi using the
createUmi
function, specifying the Solana API endpoint and the network environment ("processed" in this case). ThemplTokenMetadata
plugin is also added to the Umi instance. -
Defines the
metadata
variable, which represents the address of the NFT's metadata account. -
Defines the
collectionMint
variable, which represents the mint account of the collection. -
Generates the
collectionAuthority
using thegenerateSigner
function, passing in the Umi instance. This authority is responsible for performing the unverification action. -
Calls the
unverifyCollectionV1
function, passing in the Umi instance and an object containing themetadata
,collectionMint
, andauthority
properties. This function initiates the unverification process for the collection NFT. -
Calls the
sendAndConfirm
method on the result of theunverifyCollectionV1
function, passing in the Umi instance. This method sends the unverification transaction to the Solana network and waits for confirmation.
In summary, the code snippet uses the Umi framework to unverify a collection NFT by calling the unverifyCollectionV1
function with the necessary parameters and then confirming the transaction using the sendAndConfirm
method.
Ask

Soon™