We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug I'm trying to fetch the metadata for some NFTs, having the mint addresses:
mint
NFT1: EDjAyUug32A6pqbxRKrQwGLGt5S7iXJDMPs3ZyVHerEH
EDjAyUug32A6pqbxRKrQwGLGt5S7iXJDMPs3ZyVHerEH
NFT2: 3frcQsLMS3pYZGCGpKRXYeWhX5wq4HBXsuajnodporKY
3frcQsLMS3pYZGCGpKRXYeWhX5wq4HBXsuajnodporKY
Using the RPC client function
_solanaClient.rpcClient.getMetadata( mint: Ed25519HDPublicKey.fromBase58(data.parsed.info.mint), commitment: Commitment.finalized, );
Function snippet
Future<dynamic> getFakeIDsInWallet(String wallet) async { final filters = [ const ProgramDataFilter.dataSize(165), ProgramDataFilter.memcmpBase58(offset: 32, bytes: wallet), ]; final accounts = await _solanaClient.rpcClient.getProgramAccounts( tokenAddress, encoding: Encoding.jsonParsed, filters: filters, ); final List<Metadata> fakeIds = []; Metadata? fakeID; for (var account in accounts) { { final dynamic data = account.account.data; // data.parsed.info.mint contains the address of the NFTs listed above, inside the wallet received as parameter // replace it with the above addresses final metaplexMetadata = await _solanaClient.rpcClient.getMetadata( mint: Ed25519HDPublicKey.fromBase58(data.parsed.info.mint), commitment: Commitment.finalized, ); print("Metadata: ${metaplexMetadata?.name}"); print("Metadata: ${metaplexMetadata?.mint}"); if (metaplexMetadata == null) return; fakeIds.add(metaplexMetadata); } } }
Expected behavior Both NFTs should bring it's metaplex metadata
Additional context NFT1 comes with the field name as an empty String, while NFT2 does have it's name
name
PD: Those NFTs are on devnet
devnet
Fetching with the Javascript @metaplex-foundation/js works well, I don't know what's going on here, if someone could give me a help
@metaplex-foundation/js
The text was updated successfully, but these errors were encountered:
justinenerio
Successfully merging a pull request may close this issue.
Describe the bug
I'm trying to fetch the metadata for some NFTs, having the
mint
addresses:NFT1:
EDjAyUug32A6pqbxRKrQwGLGt5S7iXJDMPs3ZyVHerEH
NFT2:
3frcQsLMS3pYZGCGpKRXYeWhX5wq4HBXsuajnodporKY
Using the RPC client function
Function snippet
Expected behavior
Both NFTs should bring it's metaplex metadata
Additional context
NFT1 comes with the field
name
as an empty String, while NFT2 does have it's namePD: Those NFTs are on
devnet
Fetching with the Javascript
@metaplex-foundation/js
works well, I don't know what's going on here, if someone could give me a helpThe text was updated successfully, but these errors were encountered: