Skip to main content

Questions tagged [mpl-token-metadata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
20 views

How do i get metadata to upload from my frontend to backend

// src/uploadMetadata.js const { config } = require("dotenv"); config(); const { createMetadataAccountV3, updateMetadataAccountV2, findMetadataPda } = require("@metaplex-foundation/mpl-...
Techy Tro's user avatar
1 vote
2 answers
34 views

why I can not get metadata for some concrete tokens?

Using this code: import { Connection, PublicKey } from '@solana/web3.js'; // strong text@metaplex-foundation/mpl-token-metadata": "^2.13.0" import { Metaplex } from '@metaplex-...
J. Pablo García's user avatar
2 votes
1 answer
35 views

Retrieve token metadata

I'm trying to recover the metadatas of various tokens in solana. I'm using the web3.js library and the multiplex library. To do this, I'm already trying to retrieve the metadatas in multiplex. If they ...
Pedro's user avatar
  • 21
0 votes
1 answer
40 views

Solang: Check nft metaplex metadata

I want to check if NFT belongs to a verified collection address, how can I do that in Solang? For if user wants to deposit nft to the contract, that nft should belong to only the defined collection ...
Jade's user avatar
  • 117
0 votes
2 answers
48 views

Can't pass mpl token metadata CPI in anchor solana

I am trying to make a simple anchor app where an NFT is made and listed. Here is my code: #[program] pub mod solft_practice { use super::*; pub fn initialize(ctx: Context<Initialize>, name: ...
Gopal Mathur's user avatar
1 vote
2 answers
65 views

Update metadata for fixed-supply spl-token

I've been searching for the answer to this question with no luck. I have BACH Token, a spl-token that I created two years ago, more or less. I designed it to be a fixed supply of 18 million (it was 18....
Seto's user avatar
  • 141
1 vote
1 answer
65 views

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

I have been trying to execute an anchor build command in my program, but I am facing some errors for the mpl_token_metadata package. The error is pointed out for the below block of code: use ...
Hemang Joshi's user avatar
1 vote
2 answers
39 views

How resolve "cannot find value `collection_mint` in this scope" for struct InitNFT / cNft & Anchor

I try to create a program with Anchor/Rust to mint a cNFT as a part of a collection, I have this following error on the anchor build and don't understand why he can't access the collection_mint inside ...
Fulum's user avatar
  • 11
0 votes
1 answer
103 views

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

I have created a Spl token with metadata using the Token Program and createCreateMetadataAccountV3, the matadata file contains reference to social media handles defined in extensions e.g. "...
BlockLearner's user avatar
1 vote
2 answers
80 views

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

I created a Fungible Solana Token using Metaplex Umi, mpl token metadata, mplCandyMachine libraries. It seems to be working fine, but I am just wondering if this is the best way to create a fungible ...
BlockLearner's user avatar
0 votes
0 answers
71 views

Where to add setComputeUnitLimit and setComputeUnitPrice so we can adjust fees?

as you know solana Congestion has happened for days now, and i can't get anything trough. I was trying to do a metadata initialization and update, but it keeps failing. i'm a newbie, did a bit of ...
Martin Delagoncey's user avatar
3 votes
0 answers
38 views

TransferV1 + token-2022

I've been struggling for a while with a transferV1 transaction from the mpl-token-metadata library using the Umi interface. Many examples here and there show how to do it with the classic spl-token ...
Alexandre Dury's user avatar
0 votes
1 answer
18 views

What's the difference between set_and_verify_collection and verify_collection?

folks, I've been struggling a bit in order to understand what's the difference between set_and_verify_collection and verify_collection. As per what I (believe I could) understand, the first one sets a ...
Dinaiscoding's user avatar
2 votes
0 answers
68 views

Transaction simulation failed: Error processing Instruction 3: An account required by the instruction is missing

I am trying to create a Fungible SPL-2022 token with metaplex. I believe I'm missing some key piece of the puzzle here so help would be appreciated. My pseudo-code looks like this: import useUmi from '...
turkeyman84's user avatar
1 vote
1 answer
83 views

mpl-token-metadata 4.1.2 causing issues

I have been working to update this code to solana 1.18.8, anchor 0.29.0, and mpl-token-metadata 4.1.2. I have repaired most of the issues except 3. I have tried importing create_metadata_account_v3 ...
Sweet Gum's user avatar
1 vote
1 answer
697 views

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

I need a bit of help with a umi project I made. I created a token like this, import { percentAmount, generateSigner, signerIdentity, createSignerFromKeypair } from "@Metaplex-foundation/umi";...
johnny's user avatar
  • 69
0 votes
2 answers
72 views

Where is the `mpl_token_metadata.so` file?

I'm trying to use Metaplex Amman to run a local solana validator that has the Token Metadata program preloaded. I need this to create a token. At least I think I do. Every example I look at, no one is ...
jakerumbles's user avatar
0 votes
0 answers
58 views

NFTs and Anchor in 2024

In 2024, how does one go about creating a collection and minting NFTs through an anchor contract? all docs seem to be old and often deprecated. all help is appreciated.
Morgandril's user avatar
1 vote
1 answer
186 views

Creating SPL token Non-Transferable Extension with metadata on React

I'm trying to create SPL token with Non-Transferable Extension with metadata. Right now I can create token with each features only follow these guides, and fails to combine them. below is how I tried ...
cablespecific's user avatar
0 votes
1 answer
119 views

CreateMetadataAccountV3: Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: An account required by the instruction is missing

Faced with problem that CreateMetadataAccountV3 simulate fails with Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: An account required by the instruction is missing error. Here is my ...
SODAMNFOOLISH's user avatar
0 votes
0 answers
40 views

update Authority error

i have made an nft collection through candy machine i am trying to mint an nft in my rust code and trying to mint to that same collection but i am getting an error saying wrong update authority.while ...
MohammadTalha's user avatar
1 vote
1 answer
74 views

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

I'm running a local test validator via: solana-test-validator --ledger=".anchor/test-ledger" --clone="metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s" --url="https://api.mainnet-...
Simon Thomas's user avatar
1 vote
0 answers
161 views

Problem with token image

I'm new to solana blockchain development and I was trying my hand at creating a custom token on the devnet but I've been stuck for about a week now. When I mint my token, the name and symbol as well ...
johnny's user avatar
  • 69
2 votes
1 answer
275 views

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

I'm using both libraries in my codebase. Whenever I pass a pubkey to an metaplex method, I sometimes need to convert: example import { Umi, publicKey } from '@metaplex-foundation/umi'; import { ...
Hyetigran's user avatar
  • 197
0 votes
0 answers
136 views

Signing a transaction on the client side with walletAdapterIdentity plugin, but getting an error

Im trying to sign a transaction on the client side with walletAdapterIdentity plugin, but I'm getting the error: TypeError: wallet.signTransaction is not a function Its strange because ...
Gstax's user avatar
  • 31
0 votes
0 answers
57 views

pNFT delegate via metaplex umi

I'm trying to build a tx for the client to sign that will delegate the pNFT to a new address. I am using Metaplex's Umi and the walletAdapterIdentity plugin. I'm getting an error when I try to run my ...
Gstax's user avatar
  • 31
1 vote
0 answers
38 views

Err while deploying to devnet on Solana

The build is successful using anchor build. and when i deploy my program using anchor deploy i am getting below error anchor_cli = 0.28.0
Mohammad Abuzar's user avatar
1 vote
1 answer
139 views

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

I'm using anchor framework and I need to check whether an account holds a given NFT or not. According to this answer I can perform this check using mpl-token-metadata crate, but the answer does not ...
Amir reza Riahi's user avatar
0 votes
1 answer
110 views

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

Unfortunately this answer didn't help me to find what I want. Imagine I have an account address (i.e. user wallet, PDA, etc) and an NFT's token address (aka the SPL token mint), how can I figure out ...
Amir reza Riahi's user avatar
1 vote
1 answer
512 views

Build error: could not find `metadata` in `anchor_spl` and could not find `pda` in `mpl_token_metadata`

In https://beta.solpg.io/tutorials, pick up the "https://beta.solpg.io/tutorials" demo project. Here is the demo code I got: https://beta.solpg.io/65aa97e9cffcf4b13384cf03 But it failed to ...
breeze wang's user avatar
1 vote
1 answer
101 views

`Invalid authority type` when trying to Lock an NFT I own via CPIBuilders on anchor

I am trying to call this instruction to lock an NFT. LockCpiBuilder::new(&ctx.accounts.metadata_program) .authority(&ctx.accounts.admin.to_account_info()) //authority ...
Jimii's user avatar
  • 2,254
0 votes
1 answer
69 views

Set And Verify Sized Collection Item in Solana Rust

I am trying to use the SetAndVerifySizedCollectionItem instruction for verifying a collection item. However, I am encountering an error that seems to arise from a mismatch in the expected account type....
0xEbo's user avatar
  • 5
1 vote
1 answer
728 views

Token22 create/update metadata using metaplex

The token was created using the Token22 program and the metadata was added directly to the mint account as described in the documentation: https://spl.solana.com/token-2022/extensions#metadata Because ...
spl-token22's user avatar
3 votes
1 answer
231 views

Token name and icon are not showing on explorers

The token name and icon are not showing on Solana explorers: https://explorer.solana.com/address/3Gx8FbPiWfSdgXoBMzT4r22n9nhyF5CiRv52qf3WhEL8 https://solscan.io/token/...
spl-token22's user avatar
2 votes
1 answer
85 views

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

Currently, the following call will return nft metadata that contains uri. export async function fetchAsset( context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, mint: PublicKey, ): Promise&...
Hyetigran's user avatar
  • 197
0 votes
1 answer
233 views

Error creating mint and token account and minting tokens: SendTransactionError: failed to send transaction [duplicate]

In main.js: const { config } = require("dotenv"); config(); const { Connection, Keypair, SystemProgram, Transaction, sendAndConfirmTransaction, } = require("@solana/web3.js&...
Techy Tro's user avatar
2 votes
1 answer
157 views

Metadata point for SPL-token

Does anyone have a TS file that I can have that creates a metadata pointer for a token where the address is already known. Almost every exampel I find also creates the token, but I need it to just ...
Sofus L's user avatar
  • 51
1 vote
2 answers
2k views

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

Previously, we could get a TransactionInstruction using createCreateMetadataAccountV3Instruction and add the instruction to a transaction. export declare function ...
john's user avatar
  • 7,355
0 votes
0 answers
55 views

Getting AccountNotInitialized error when creating metadata account

The Metadata and MasterEdition accounts are created using the create_metadata_accounts_v3 and create_master_edition_v3 instructions. For some reason anchor expects them to already be initialized. Is ...
Jimii's user avatar
  • 2,254
2 votes
1 answer
73 views

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

The first field for the MetadataAccount struct is key which is commented as being the account discriminator. What is MPL token metadata using this field for?
Jimii's user avatar
  • 2,254
0 votes
2 answers
442 views

Burn nft with mpl token metadata

I'm trying to use metaplex's mpl token metadata to get the burn instruction. Here is my code : import { burnNft } from '@metaplex-foundation/mpl-token-metadata' ... var umi = createUmi(SOLANA_CLUSTER) ...
Effe2's user avatar
  • 1,168
0 votes
1 answer
254 views

Metaplex mpl token metadata returns transaction builder, can we get the instruction?

i'm trying to use metaplex mpl token metadata v3 to burn an nft, and i need the instruction. When i use burnNft method, it returns a transaction builder instance. Is there a way to get only the ...
Effe2's user avatar
  • 1,168
1 vote
3 answers
181 views

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

Is there a way to access a programmable NFT's Token Record Data using anchor in Rust? Is there a function for this provided by the Metaplex SDK? I have the address of the account and I just need to ...
Jimii's user avatar
  • 2,254
0 votes
1 answer
161 views

How to CPI into token_metadata_program with optional accounts

I am aiming to Cross Program Invoke the transfer method of token_metadata_program. The method takes optional parameters: ... #[account(6, optional, name="edition", desc="Edition of ...
Daniel Pavel's user avatar
0 votes
1 answer
235 views

how many times go to update solana token metadata?

how many times go to update solana token metadata. I was Updated few times using createUpdateMetadataAccountV2Instruction but still my image doesn't appear.
nuwan's user avatar
  • 3
1 vote
0 answers
70 views

Anchor Metadata Creation: insufficient account keys for instruction

I'm getting an error while creating a new token mint. I'm passing all the accounts but still get "Error: NotEnoughAccountKeys". Here's my Anchor Program: pub fn create_mint( ctx: ...
Ace's user avatar
  • 41
2 votes
1 answer
230 views

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

When I add "mpl-token-metadata" by Cargo then the transaction response with error Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program ...
Richard's user avatar
  • 21
1 vote
0 answers
236 views

How to deserialize Metadata account in Typescript without Anchor IDL?

I managed to deserialize everything with this custom getMetadata() function, except for CollectionDetails and ProgrammableConfig. Does anybody know the solutions? /** * This blob of a file is pulled ...
jonasXchen's user avatar
3 votes
1 answer
407 views

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

I am trying to create Metadata for an NFT. I found this function and the second parameter is "metadata_account". I have been looking everywhere trying to find what this is. I thought I was ...
Brayan Byrdsong's user avatar
0 votes
1 answer
139 views

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

I am trying to decode the metadata account data for an NFT in a react app. The metaplex SDK makes use of the connection object, which is fine for public nodes, but my front end connects to my ...
daoplays's user avatar
  • 587