Skip to main content
6 votes
Accepted

How to add metadata on spl-token?

You can use npm i mpl-token-metadata version 2 with createCreateMetadataAccountV3Instruction, if you still want to continue your code npm i @metaplex-foundation/mpl-token-metadata@2 base on your code:...
Mr. J's user avatar
  • 146
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,120
2 votes

How to Obtain the Metadata URI of a Solana Token Using Python

Looking at the source code, I think the offsets are incorrect. Given the sizes at https://github.com/metaplex-foundation/mpl-token-metadata/blob/e86de64101fc386dd4cc97b6f107da3de258833a/programs/token-...
Jon C's user avatar
  • 15.3k
2 votes

How to create spl-token not 2022, using @solana/spl-token-metadata?

With @solana/spl-token-metadata, you can only add metadata to the Token Extensions (previously token 2022) program using the metadata pointer extension. For spl-token program, you can use a library ...
Jimii's user avatar
  • 3,120
2 votes

How to create token using spl-token create-token with --enable-metadata

Initialized a token 22 mint with the metadata extension like this. Try removing the quotes and see if it there is a change. spl-token initialize-metadata teseCZW7zZkyFJvHpDp7gB6rgvzYJa65XdPWL3Y7ivf ...
Jimii's user avatar
  • 3,120
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,120
1 vote

How to fetch token metadata on chain?

You could use the DAS API and make use of the fetchAsset RPC call. More info, https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api/get-asset The examples are in JS, but I ...
Jimii's user avatar
  • 3,120

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