js icon indicating copy to clipboard operation
js copied to clipboard

Loading NFT errors out due to edition account not being available

Open skulltech opened this issue 2 years ago • 1 comments

e.g. I got this error when I tried to load the NFT with mint 6P7U2KK1PMh3oeYBALftbDeUoNTPE2rioqhb1wwZwFS2.

AccountNotFoundError [MetaplexError]: Account Not Found
>> Source: SDK
>> Problem: The account of type [MasterEditionV1 | MasterEditionV2 | Edition] was not found at the provided address [3QEd2d2L2q9Q8LuTnzV1reYFvZcSQxQ5iVvbsQ7D5D41].
>> Solution: Ensure the provided address is correct and that an account exists at this address.

I think a robust solution would be making the edition field optional, and in case it isn't available keep that field empty and return a loaded NFT with rest of the fields loaded.

skulltech avatar Jul 26 '22 07:07 skulltech

I had the same error, how can I get the nft data in this case?

zhaodong-wang avatar Aug 15 '22 08:08 zhaodong-wang

Got the same error

dn-l avatar Sep 09 '22 01:09 dn-l

Hi there 👋

Could you share the version of the SDK and the code you're using because the SDK supports both NFTs and SFTs. It's worth noting that an NFT without an edition account is, by definition, not an NFT. However, as I said, the SDK should also support SFTs.

lorisleiva avatar Sep 09 '22 07:09 lorisleiva

@lorisleiva

    "@metaplex-foundation/js": "^0.15.0",
    const { nft } = await metaplex
        .nfts()
        .create({
          tokenOwner,
          name: "Some name",
          uri: "https://someuri.com",
          sellerFeeBasisPoints: 6969,
          creators: [
            {
              address: keypair.publicKey,
              verified: true,
              share: 0,
            },
            {
              address: new PublicKey(
                "some key"
              ),
              verified: false,
              share: 100,
            },
          ],
        })
        .run();

dn-l avatar Sep 11 '22 11:09 dn-l

Hi @dn-l, I'm confused I thought this issue was to do with loading NFTs / SFTs and not creating them.

I'm going to close this issue for now since it seems they are referencing different issues on different versions but please feel free to open a new issue using the latest version with updated information if you need to.

Thank you for your understanding.

lorisleiva avatar Sep 30 '22 12:09 lorisleiva