The error shows up on the sendAndConfirmTransaction line:
ParsedProgramError: The program [TokenMetadataProgram] at address [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s] raised an error of code [1] that translates to “”.
What could be causing this error and how can I resolve it?
check your ruleset parameter - passing null is probably causing this. even tho you set it to null, programmable nfts usually need a proper ruleset or u need to explicitly set it to PublicKey.default. also double-check that your creators array has the right adresses and verified flags.
Hey @Elias87, that’s definitely frustrating! Got a few questions that might help figure this out…
Are you on devnet or mainnet? The token metadata program acts weird sometimes between networks and can cause parsing problems.
When you hit that sendAndConfirmTransaction error - try splitting it up. Use sendTransaction first, then confirmTransaction separately. That’ll tell you if it’s failing during send or confirm.
What’s your creatorsList array look like? I’ve seen creator verification status break things, especially when you’re trying to verify creators that don’t match your transaction signer.
Try logging the actual transaction before sending it. Check what accounts are getting included - might show us what’s missing or messed up.
I faced a similar issue a couple of months ago while working on programmable NFTs. Typically, this error indicates that your transaction lacks necessary accounts. When you specify tokenStandard: TokenStandard.ProgrammableNonFungible, make sure that the Token Record account is included, as the builder often does not add it automatically. Additionally, check that you are using the most recent version of the Metaplex SDK and confirm that your wallet holds sufficient SOL, as the fees for programmable NFTs are higher than for standard ones. Although error code 1 is vague, it commonly points to missing or incorrect accounts.