Skip to main content
3 votes

why I can not get metadata for some concrete tokens?

you are using the deprecated API for the Metaplex SDK. Please switch to UMI and the metadata package import { createUmi } from "@metaplex-foundation/umi-bundle-defaults"; import { ...
Jimii's user avatar
  • 3,270
2 votes
Accepted

How to decode account data using Rust?

mpl_token_metadata::accounts::Metadata has a function from_bytes which serializes the bytes into a Metadata struct: let meta: Metadata = Metadata::from_bytes(&account.data).unwrap();
lifeInspection's user avatar
2 votes

Retrieve token metadata

To make your work easier, make the fetches using the DAS API and an RPC provider that supports it like Helius. Codewise, this would take the form. import { keypairIdentity, publicKey, } from &...
Jimii's user avatar
  • 3,270

Only top scored, non community-wiki answers of a minimum length are eligible