Skip to main content

Questions tagged [mpl-token-metadata]

Filter by
Sorted by
Tagged with
1 vote
2 answers
57 views

Cannot Create an Associated Token Account

I'm not the first to ask a question about this problem, but none of the questions asked were answered. The problem is that I'm trying to create an associated token account to mint an NFT, but the ...
Michael's user avatar
  • 13
1 vote
0 answers
22 views

Why does umi add an extra characters to the beginning of the meta data?

const umi = createUmi(rpcUrl); umi.use(mplTokenMetadata()); umi.use(signerIdentity(source)); const memo = { memo: '1' } let transaction = await transactionBuilder() .add(addMemo(umi, ...
Leo Loki's user avatar
  • 464
1 vote
1 answer
59 views

mpl-token-metadata

I am trying to update NFT metadata using mpl-token-metadata 5.1.0. But I can't find the function like update_metadata_accounts_v2() in docs. I am using anchor version 0.29.0, Solana-cli 1.18.16, mpl-...
ledgermuminary55's user avatar
2 votes
1 answer
25 views

How to Check if an NFT Belongs to a Specific Collection in Solana with mpl_token_metadata?

I'm working on verifying whether a given NFT's mint address belongs to a specific collection on Solana. In examples I’ve seen, mpl_token_metadata::state::Metadata was used for this purpose, as shown ...
0xfiraterdem's user avatar
1 vote
0 answers
13 views

Is it possible to change NFT collection for minted compressed NFT

I have an on-chain program that mints tokens into a collection, is there a way to change the collection for a minted token?
Nutinaguti's user avatar
1 vote
2 answers
37 views

Error verifying Metaplex NFT

Trying to verify a Metaplex NFT as part of a collection Logs: [ "Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]", "Program log: IX: Verify", "Program ...
Jimii's user avatar
  • 7,672
1 vote
2 answers
69 views

Token_2022 and mpl_token_metadata test issues

I'm having some issues with running tests locally against a program I created. Its based off mint_nft.rs from this repo but I've updated it to use the token_2022 program. use anchor_lang::prelude::*; ...
rtwhite's user avatar
  • 143
0 votes
1 answer
74 views

Building an App for users to create SPL Tokens & Set Authority

I've built a few launchpads before, but only on EVM for ETH/BSC, and keep getting stuck while building with Solana/SVM. I'm building a platform for users to create SPL tokens by inputting token ...
DeFiDevJimmy's user avatar
1 vote
1 answer
17 views

How to Declare RpcBaseOptions?

I have two calls to fetchAllDigitalAssetWithTokenByOwnerAndMint Call 1 (this works): const a_asset = await fetchAllDigitalAssetWithTokenByOwnerAndMint(umi, aWallet.publicKey, mint.publicKey, {...
VFR292's user avatar
  • 13
0 votes
0 answers
9 views

Sudenly Error "Already Initialized" when invoke Mint New Edition from Master Edition Via Token in cpi mpl token metadata

im try to create nft with print from master edition, previously my contract its working for 3months, but now I often encounter this error sudenly, this error say "Already initialized" when ...
Alfian Dwi Nugraha's user avatar
0 votes
1 answer
106 views

Error in @metaplex-foundation/js

these are my npm version { "name": "sol-final", "version": "0.1.0", "private": true, "dependencies": { "@babel/plugin-...
akash swamy's user avatar
1 vote
3 answers
93 views

Not able to add solana metadata using Metaplex

const { Connection, Keypair, PublicKey, Transaction, sendAndConfirmTransaction, } = require("@solana/web3.js"); const { createMetadataAccountV3, PROGRAM_ID } = require('@...
helpmemeta's user avatar
2 votes
1 answer
223 views

How to Access Token Metadata Program ID on Localnet?

On devnet, testnet, and mainnet, the program ID metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s is readily available. However, I can't find this program ID on my localnet. I'm running a local Solana test ...
Wildanzr's user avatar
1 vote
2 answers
186 views

How to set updateAuthority for spl-token in time of mint with JavaScript?

Im using @solana/spl-token to mint a legacy token on Solana (not token2022). The problem is that I cannot set any updateAuthority for it so I cannot set/update its metadata with Metaplex after minting....
S Arv's user avatar
  • 11
1 vote
1 answer
90 views

Real time IPFS data of created token

I’m looking for any faster way to get IPFS data that will take maximum like maximum 200ms and the lower the better. My code is written in Rust and currently I’m just calling some providers and waiting ...
Daniel Kotlarov's user avatar
0 votes
0 answers
46 views

Simple program fails Error: memory allocation failed, out of memory, consumed 2474 of 200000 compute units

I'm trying to write a program to be able to init and mint different tokens. So I pass dynamic seed during program invocation as a parameter, but somehow running out of memory in the mint_tokens ...
Scott's user avatar
  • 33
4 votes
1 answer
78 views

How to set freezeAuthority and mintAuthority to null?

I'm trying to mint a token along with metadata. Since Solana has moved to Metaplex for token metadata I've been trying to get it working. Now that I have finally managed t o get it working I am having ...
Arfath Yahiya's user avatar
0 votes
2 answers
61 views

MPL token metadata via CPI — cannot provide verified creators, signing error

I'm trying to create a token and its metadata using CPI (anchor lang). Everything works except verifying creators. Transaction is first created in backend, on client side it is signed and backend ...
GRiMe2D's user avatar
  • 101
2 votes
1 answer
179 views

Read metaplex metadata in rust & anchor

can someone tell me where can i find an example to decode metadata in rust & anchor ? i was using Metadata::from_account_info, but this is no available anymore in recent mpl_token_metadata ...
Effe2's user avatar
  • 1,607
3 votes
1 answer
704 views

How to decode account data using Rust?

I'm trying to get the account data using Rust and the solana_sdk. I have the following code where account.data is a Vec. let pubkey = Pubkey::from_str("...
lifeInspection's user avatar
0 votes
2 answers
82 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
114 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
125 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
1 vote
0 answers
50 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
  • 127
0 votes
2 answers
104 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
315 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
367 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
79 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
  • 21
1 vote
1 answer
618 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
359 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
1 vote
1 answer
219 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
5 votes
2 answers
132 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
39 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
182 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
2 votes
1 answer
386 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
2 answers
1k 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
  • 89
0 votes
2 answers
131 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
63 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
306 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
173 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
46 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
146 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
2 votes
0 answers
233 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
  • 89
2 votes
1 answer
484 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
292 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
82 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
39 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
158 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
214 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
1k 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