Skip to main content
3 votes

Update metadata for fixed-supply spl-token

In order to create the metadata, Metaplex's metadata program requires a signature from the mint authority, because they don't want to allow anybody to create the metadata for a token. When you create ...
Jon C's user avatar
  • 19.6k
3 votes
Accepted

What is the purpose of Metadata Pointer Extension, given that Token Metadata means I can store metadata directly in the mint?

There is the token metadata interface, which can be implemented by any program to function as a custom "metadata program". The new Token Extensions program also implements this interface, ...
john's user avatar
  • 7,794
2 votes

How to make metadata immutable TOKEN_2022_PROGRAM_ID

Use the tokenMetadataUpdateAuthority helper and set newAuthority to null. https://solana-labs.github.io/solana-program-library/token/js/functions/tokenMetadataUpdateAuthority.html It invokes this ...
john's user avatar
  • 7,794
2 votes
Accepted

How do I make a token using Token Extensions Metadata in JavaScript/TypeScript?

I am answering my own question to help others. There's a example of creating a token using token extensions metadata in the Solana Labs repo. This has been turned into a helper in the @solana-...
mikemaccana's user avatar
  • 2,754
2 votes
Accepted

Confusion about MetadataPointer

I think there are many good articles available that provides detailed info on this topic. https://solana.com/developers/courses/token-extensions/token-extensions-metadata https://solana.com/...
chalda's user avatar
  • 1,657
1 vote

Tokens with onchain data

for ERC 1155, you can take a look at the Fungible Assets standard from Metaplex, Creating such assets would look like this import { percentAmount, generateSigner, some } from '@metaplex-foundation/umi'...
Jimii's user avatar
  • 7,712
1 vote

Configure metadata in building the token extension program

To upload metadata you can use the irys gateway in collaboration with umi plus the irys plugin const collectionImagePath = path.resolve(__dirname, "collection.png"); const buffer = await ...
Jimii's user avatar
  • 7,712
1 vote

How to verify correct `ConstraintMintMetadataPointerExtension` Input

I believe you have to initialize the mint in the instruction for the macro to work. try adding an init and payer to this. #[account( init, signer, payer = user, mint::...
Truitt's user avatar
  • 655
1 vote

TokenMetadata not an export? ...just following the code in docs

You cannot use Typescript types in JS and that's why you are getting this error. To make this work Remove the TokenMetadata import in your JS file In you package.json add the "type": "...
Jimii's user avatar
  • 7,712
1 vote

After deploying my spl_token_2022.so successfully, i do not know how to initialize the metadata and create the mint account. I used SPL git repository

I just tested this out, and it seems to work with a simple setup. Try the following: npm i @solana/spl-token npm i @solana/[email protected] npm i @solana/spl-token-metadata Rename the file to js: mv ...
Jon C's user avatar
  • 19.6k
1 vote
Accepted

Error: Unknown https cluster: mainnet

The actual moniker for Solana mainnet is "mainnet-beta", so inputting that should work. Additionally, "https://api.mainnet-beta.solana.com/" should work as well.
Joey Meere's user avatar
  • 1,612
1 vote

Update metadata for fixed-supply spl-token

You can set the mint authority to null. This means there can be no more tokens minted: In js you can do that like this: const freezMint = await setAuthority( connection, keyPair, mintkeyPair....
Jonas H.'s user avatar
  • 7,219

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