Guides
Minting an NFT
For minting an NFT we will interact with the Token Metadata program, see the metaplex documentation for a comprehensive overview.
Firstly, we need to create a new mint account for the NFT we want to mint and an associated token account for owning it.
Secondly, let’s define the metadata of the NFT.
We can now construct the transaction, whichi consists of 5 istructions:
- Creating the Mint Account
- Initilizing the Mint Account
- Creattin the AssociatedTokenAccount
- Minting the NFT
- Creating the Metadata Account
- Creating the Master Edition
Finally, let’s sign and send the transaction:
The console will print the transaction signature, which you can investigate in the inspector and should looks similar to this transaction,
You can lookup the mint address in the explorer, which should be similar to this NFT
Was this page helpful?