Questions tagged [mpl-token-metadata]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 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
  • 49
0 votes
2 answers
40 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
31 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
54 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
20 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
17 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
33 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
61 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
  • 49
2 votes
1 answer
189 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
63 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
34 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
30 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
126 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
64 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
0 votes
1 answer
107 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
51 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
  • 1,438
0 votes
1 answer
43 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
  • 3
1 vote
1 answer
220 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
92 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
69 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
129 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
130 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
1 answer
863 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
  • 6,690
0 votes
0 answers
54 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
  • 1,438
2 votes
1 answer
59 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
  • 1,438
0 votes
2 answers
283 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,138
0 votes
1 answer
177 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,138
1 vote
3 answers
127 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
  • 1,438
0 votes
1 answer
109 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
136 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
57 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
152 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
0 votes
0 answers
138 views

Rust Program to Transfer Pnft

Im trying to update my program to be able to transfer pnfts from the payer wallet to another wallet but facing errors: "11111111111111111111111111111111's signer privilege escalated", '...
Abrar Musa's user avatar
0 votes
0 answers
33 views

How do tokens with royalties work?

Im just trying to get some info regarding tokens with royalties, not nfts, fungible tokens. If Im not mistaken they follow the same metadata structure standard and many tokens have 0 royalties by ...
Normal Guy's user avatar
1 vote
0 answers
165 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
244 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
103 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
  • 497
1 vote
0 answers
42 views

printNewEdition does not work after burning an edition

I use this code to print. metaplex.nfts().printNewEdition({ originalMint: new PublicKey(masterEditionMint) }) Then I use burn_edition_nft instruction to burn the minted one. Both work ...
Asim's user avatar
  • 11
1 vote
0 answers
254 views

mpl-token-metadata library not installing build Failed

I tried different versions, after adding mpl-token-metadata library and then simply running anchor build fails with the following error. use spl_token::state::is_initialized_account; | no `...
Abdullah Qureshi's user avatar