Based on the Mint Your First NFT lesson, this project shows how to mint your first NFT on the Solana blockchain using Anchor and Metaplex.
To use this fork, you need to have yarn, Anchor and the Solana cli suite installed on your machine.
It is highly recommended that you start this project from scratch, following along with the tutorial.
To use the fork, follow the steps outlined below:
- Clone your forked repo.
git clone https://github.com/<YOUR-USERNAME>/solana-nft-anchor
- Change directory into the root of your cloned repo and install missing node packages
yarn install
NOTE: You must use yarn to install the dependencies. If you use a different package manager, you will run into issues minting the NFT.
- Build your anchor project.
anchor build
- List the project deployment keys and copy the address to a clipboard
anchor keys list
- Update your
Anchor.toml
file, by uncommenting the line blow and adding the address generated in the previous step.
[programs.devnet] # uncomment below
# solana_nft_anchor = "<ADD YOUR ADDRESS HERE>"
- Update your
lib.rs
file by adding the the address generated in step 4 to thedeclare_id!()
macro
// snip
use mpl_token_metadata::{
pda::{find_master_edition_account, find_metadata_account},
state::DataV2,
};
declare_id!("<UPDATE HERE>");
#[program]
pub mod solana_nft_anchor {
// snip
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Did you encounter a challenge following the tutorial or running the fork? Head over to our learning support channel on our Discord or alternatively, raise a ticket.
We are always happy to lend a helping hand
All files within this repository are licensed under the MIT License unless explicitly stated otherwise.
100% Open Source software.
© 2023 [Calyptus] - See LICENSE for details.