I am trying to implement the NFT burn from the metaplex programm: https://github.com/metaplex-foundation/metaplex-program-library/blob/master/token-metadata/js/src/generated/instructions/BurnNft.ts
I managed to get all the accounts I need except the
* @property [_writable_] masterEditionAccount MasterEdition2 of the NFT
Can someone explain me how I can derive it?
My guess is i do the same as for
* @property [_writable_] metadata Metadata (pda of ['metadata', program id, mint id])
But then i need to add "edition" to it some how. But I dont know how. This is how I derive the meta data pda.
bool createdMetaDataPda = PublicKey.TryCreateWithSeed(
new PublicKey(nft.MetaplexData.mint),
"metadata",
TokenProgram.ProgramIdKey,
out PublicKey derivedMetaDataAccount);
Thank you for any help :)