Skip to main content

Questions tagged [mpl-token-metadata]

Filter by
Sorted by
Tagged with
1 vote
2 answers
15 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
  • 5,442
1 vote
2 answers
46 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
43 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
13 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
36 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
41 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
59 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
68 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
36 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
33 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
43 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
1 answer
26 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
90 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,525
3 votes
1 answer
427 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
60 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
88 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
76 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
79 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
192 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
252 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
67 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
358 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
216 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
150 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
4 votes
1 answer
83 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
29 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
133 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
229 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
952 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
  • 79
0 votes
2 answers
103 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
62 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
265 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
156 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
44 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
114 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
208 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
  • 79
2 votes
1 answer
402 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
255 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
74 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
149 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
172 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
847 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
2 votes
1 answer
153 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
  • 5,442
0 votes
1 answer
89 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
  • 145
1 vote
1 answer
982 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
4 votes
1 answer
275 views

Token name and icon are not showing on explorers [duplicate]

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
104 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