Skip to main content
5 votes
Accepted

Is there a method available to convert the web3 PublicKey to metaplex's publicKey?

To convert the public keys, use the fromWeb3JsPublicKey and toWeb3JsPublicKey methods from the @metaplex-foundation/umi-web3js-adapters package. You can read more on the documentation about the Web3....
beeman's user avatar
  • 950
4 votes
Accepted

How to build an instruction to a create metadata account using latest `mpl-token-metadata` library?

It was the last day of the Hyperdrive Hackathon and I was stuck exactly at this problem. Since, I have worked with the previous versions of mpl-token-metadata, I was assured that I will be able to ...
0xShuk's user avatar
  • 1,919
3 votes

Token22 create/update metadata using metaplex

Unfortunately you cannot create a metadata account using Metaplex Token Metadata if your Token 2022 mint has the metadata extension enabled. You can find the list of supported Token 2022 extensions on ...
febo's user avatar
  • 53
3 votes

Token name and icon are not showing on explorers

The token extensions are pretty new and not yet supported everywhere. Feel free to nag all the wallets and explorers to support metadata and transfer hooks :D Im pretty sure many are working on adding ...
Jonas H.'s user avatar
  • 5,477
3 votes

What is the best way to fetch the NFT image along with metadata?

you can use the DAS api from triton, helius or metaplex for example. Here are the helius docs for it: https://docs.helius.dev/compression-and-das-api/digital-asset-standard-das-api This is how you can ...
Jonas H.'s user avatar
  • 5,477
3 votes
Accepted

Creating SPL token Non-Transferable Extension with metadata on React

Answering my own question, as I could solve the issue with this. // Size of MetadataExtension 2 bytes for type, 2 bytes for length const metadataExtension = TYPE_SIZE + LENGTH_SIZE; // ...
cablespecific's user avatar
3 votes
Accepted

Why does the token metadata program have an account discriminator field?

The MPL Token Metadata program works with several types of accounts not just the Metadata Account, so it needs a simple way to determine what type a certain account is. One common pattern to do this ...
Serban's user avatar
  • 1,231
2 votes

How to CPI into token_metadata_program with optional accounts

The MPL token metadata program exports a builder that you can use to create your CPI instruction. Check how the Candy Machine uses it: https://github.com/metaplex-foundation/mpl-candy-machine/blob/...
Serban's user avatar
  • 1,231
2 votes
Accepted

how many times go to update solana token metadata?

You would only need to run the command once to update a token. I am assuming that you are using the UpdateMetadataAccountV2 from Metaplex. To update the image of a token make sure that you have ...
owen.sol's user avatar
  • 128
2 votes

Error when add "mpl-token-metadata", Transaction simulation failed: Error processing Instruction 0: Program failed to complete

can you please send the command with .rpc({ skipPreflight: true, }); and the paste the signature into https://explorer.solana.com/ This should show you the proper on chain error. I guess ...
Jonas H.'s user avatar
  • 5,477
2 votes
Accepted

What is metadata_account in mpl_token_metadata::instruction::create_metadata_accounts_v3?

metadata_account is the account that stores the metadata for the mint and is a PDA. From the client you can derive it using @metaplex-foundation/js: const metadataAccountAddress = await metaplex ....
john's user avatar
  • 7,310
2 votes

How do I ge the `Token Record` account for a pNFT

You can using TokenRecord::from_account_info(). Make sure to import the TokenMetadataAccount trait as well. use mpl_token_metadata::state::{TokenRecord, TokenMetadataAccount}; You use it like so: let ...
Serban's user avatar
  • 1,231
2 votes

Where is the `mpl_token_metadata.so` file?

You can use the Solana CLI to make a dump from the chain solana program dump metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s mpl_token_metadata.so
dr497's user avatar
  • 216
2 votes

How to build an instruction to a create metadata account using latest `mpl-token-metadata` library?

A simpler solution, using mpl-token-metadata version 2 (no Umi). @metaplex-foundation/mpl-token-metadata version 3 duplicates a lot of web3.js unnecessarily and requires learning a bunch of additional ...
mikemaccana's user avatar
  • 1,962
2 votes

What is the preferred way to create Fungible Token with Metadata on Solana

both methods are viable. Using umi and mpl-token-metadata is the newer method that Metaplex recommends. createMetadataAccountV3 is using the instructions directly basically and does not allow you to ...
Mark Sackerberg's user avatar
2 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
  • 14k
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
  • 5,477
1 vote
Accepted

Could not find `pda` and `state` in `mpl_token_metadata`

These imports are for older versions From the latest version import them like this use mpl_token_metadata::accounts::{ MasterEdition, Metadata as MetadataAccount }; usage #[account( mut, ...
Jimii's user avatar
  • 1,798
1 vote
Accepted

How to add twitter and website handles to SPL Tokens, to show up in Solscan

I've investigated the issue regarding your token metadata not displaying as expected on Solscan, specifically focusing on the extensions you mentioned for social media handles. After checking the ...
Christian Liz-Fonts's user avatar
1 vote

What is the preferred way to create Fungible Token with Metadata on Solana

I'm fairly sure createMetadataAccountV2 does not work anymore - Metaplex doesn't publish changelogs for their software, but a friend who used to work there mentioned the program has been switched off. ...
mikemaccana's user avatar
  • 1,962
1 vote

How to revoke mint and freeze authority on mpl token with solana cli

You've got it right, using spl-token. solana-tokens is not what you're looking for, and is more for large distributions of tokens. Here are the commands to run: spl-token authorize ...
Jon C's user avatar
  • 14k
1 vote
Accepted

NFT Minting failing on Localhost / MPL Metadata (solana-test-validator with meta clone)

Ok I've found a better solution: https://www.quicknode.com/guides/solana-development/accounts-and-data/fork-programs-to-localnet Basically instead of --clone, dump the file from mainnet locally: ...
Simon Thomas's user avatar
1 vote
Accepted

How can I check whether an account is holder of a given NFT or not in Anchor?

My approach would be to leverage Anchor Account Structs: This is assuming your nft is from a certain collection. Otherwise you can get rid of collection_mint acc and the collection constraints in the ...
beliveN DAOist.dev's user avatar
1 vote

How can I verify that a given account hold a given NFT?

Understanding that Solana NFTs are just SPL token mints with a supply of exactly 1 and NFT's ownership is actually held by the "associated token account" (ata for short). So you can derive ...
nickfrosty's user avatar
  • 1,026
1 vote

Metadata point for SPL-token

The metadata pointer must be initialized before the base mint is initialized, so it's not possible to add the pointer afterwards. It's a bit tougher to digest, but there's an example doing it in the ...
Jon C's user avatar
  • 14k
1 vote

Burn nft with mpl token metadata

Error Message The error message states that x.pubkey.toBase58 is not a function, meaning that x doesn't have a pubkey property, or the pubkey property on x doesn't have a toBase58() method. This ...
0xIchigo's user avatar
1 vote

How do I ge the `Token Record` account for a pNFT

Not sure if there is a function for it in meta plex sdk. But in general for anchor programs you can get the data via connection.getAccountInfo(yourAddress) then if it is part of the meta plex program ...
Jonas H.'s user avatar
  • 5,477
1 vote
Accepted

accessing metaplex metadata in a react app via a curl request to RPC or getAccountInfo directly

You certainly can fetch data with just curl, ie: curl http://localhost:8899 -X POST -H "Content-Type: application/json" -d ' { "jsonrpc": "2.0", "id": ...
Jon C's user avatar
  • 14k

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