Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Explain token metadata structure #212

Open
cuongn265 opened this issue Jan 18, 2022 · 0 comments
Open

[Request] Explain token metadata structure #212

cuongn265 opened this issue Jan 18, 2022 · 0 comments

Comments

@cuongn265
Copy link

Hi guys, thank you so much all of you for create such a very helpful guide on Solana

I would like to request a guide for structure of NFT Token Metadata, as this guide mention https://solanacookbook.com/references/nfts.html#candy-machine-v2

The mint address is located at byte 33 and lasts for 32 bytes

const metadataAccounts = await connection.getProgramAccounts(
  TOKEN_METADATA_PROGRAM,
  {
    // The mint address is located at byte 33 and lasts for 32 bytes.
    dataSlice: { offset: 33, length: 32 },

    filters: [
      // Only get Metadata accounts.
      { dataSize: MAX_METADATA_LEN },

      // Filter using the first creator.
      {
        memcmp: {
          offset: CREATOR_ARRAY_START,
          bytes: firstCreatorAddress.toBase58(),
        },
      },
    ],
  },
);

Can some body help to explain where other data located like this one:
image

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant