Open zhaodong-wang opened 2 years ago
I had the same problem.
I think I've seen that error before, and it usually happens when the address you're trying to make the transaction with has no funds.
Hey, did you figure this out?
@Spizzerp, try this answer from stack overflow
Hi !
I try to fetch metadata for a list of token mint with this method :
const mintAddress = new PublicKey(7drEXLpjGHZew6MBFydX2zmofSErBtyQxexqhQ4c74X9); const nft = await metaplex.nfts().findByMint({ mintAddress });
but I still continue to have the same error ? Are there any solution ?
For example, the error occur with this address :
7drEXLpjGHZew6MBFydX2zmofSErBtyQxexqhQ4c74X9 HqWFwZBbBkNL65XXVAH6wbC8EWmZmooDLJy8uSUj6hYV
and I don't have any idea how to manage with it...
Thanks
The address mentioned in this issue is that of a "token" and not "nft"
Using the token module, will fetch the correct details
const mint = new PublicKey("GkCYKY6iLuNjoRmNuBHDRMUtcUCSE5buiQpPeq9iuq5u");
const token = await metaplex.tokens().findMintByAddress({
address: mint
});
console.log(token);
Output:
{
"model": "mint",
"address": "GkCYKY6iLuNjoRmNuBHDRMUtcUCSE5buiQpPeq9iuq5u",
"mintAuthorityAddress": "NFTsPae8pUuvKHiUHpXfZaQwwbiVPw6dPCWpwfvrwR6",
"freezeAuthorityAddress": "NFTsPae8pUuvKHiUHpXfZaQwwbiVPw6dPCWpwfvrwR6",
"decimals": 0,
"supply": {
"basisPoints": "2f6c",
"currency": {
"symbol": "Token",
"decimals": 0,
"namespace": "spl-token"
}
},
"isWrappedSol": false,
"currency": {
"symbol": "Token",
"decimals": 0,
"namespace": "spl-token"
}
}
Hi there, I got an error when trying to use
metaplex
SDK, here is the MWE:I should get the nft data as shown here: https://explorer.solana.com/address/GkCYKY6iLuNjoRmNuBHDRMUtcUCSE5buiQpPeq9iuq5u
However, I got the following error:
How can I fix this?