I can get the metadata of any token I build like that:
import { Metaplex, keypairIdentity } from '@metaplex-foundation/js';
import { Metadata } from "@metaplex-foundation/mpl-token-metadata";
const metaplex = Metaplex.make(connection)
.use(keypairIdentity(wallet))
const metadataPda = metaplex.nfts().pdas().metadata({ mint: mint });
const account = await Metadata.fromAccountAddress(connection, metadataPda);
console.log('Name', account.data.name)
console.log('Symbol', account.data.symbol)
console.log('URI', account.data.uri)
It is a very simple code and works.
I am trying to get the metadata of very popular tokens like USDC on Devnet. I would like to get and show this information like Solana Explorer or Solscan. But, when I try it, I receive an error "Unable to find Metadata account".
Even, on Solscan, you do not see any metadata in the corresponding tab.
It seems the metadata of this token does not work in the same way. How I can get the name, symbol and image of USDC Dev?
Thanks!