Questions tagged [mpl-token-metadata]
The mpl-token-metadata tag has no usage guidance.
18
questions
1
vote
0
answers
12
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 ...
1
vote
1
answer
177
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 ...
0
votes
0
answers
28
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 ...
2
votes
1
answer
38
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?
0
votes
2
answers
118
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)
...
0
votes
1
answer
85
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 ...
1
vote
3
answers
77
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 ...
0
votes
1
answer
61
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 ...
0
votes
1
answer
57
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.
1
vote
0
answers
40
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: ...
2
votes
1
answer
94
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 ...
0
votes
0
answers
106
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",
'...
0
votes
0
answers
20
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 ...
1
vote
0
answers
89
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 ...
3
votes
1
answer
121
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 ...
0
votes
1
answer
73
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 ...
1
vote
0
answers
33
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 ...
1
vote
0
answers
164
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 `...