Hi guys, I am new to Solana . I am trying to mint an NFT using the tutorial given in Solana cookbook as shown in this link NFTs | Solana Cookbook
i am getting the uri for the metadata in JSON from moralis but the JSON format is exactly the same as shown to be uploaded to arweave.
But I am getting the following error
Unhandled Runtime Error
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 2: custom program error: 0x26
Can someone please explain what am I doing wrong???
It will be very helpful.
"metaplex nft custom program error: 0x26" on Google and then discovered this Stack Overflow answer, which may be useful for you.
The Error describes itself that the person who is minting the NFT address should also be part of the creator’s array to solve this error you have to add the address of the account who is signing the transaction as a Creator in the Data Struct.
If you don’t wish to add the person signing’s address into the creator struct you can either set the share for that address as 0 or update the NFTs metadata after minting the NFT.
Hope that helps!
Also if you’d like to try out Alchemy’s new Solana RPC for better reliability and awesome dashboards, sign up with this link to get started for free: Alchemy - Create Team
It’ll look something like this: