Questions tagged [metaplex]

The tag has no usage guidance.

56 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
93 views

Is there a way to destructure a freezeDelegatedNft?

I am looking for a way to destructure a freezeDelegatedNft so I can combine it with another transaction. This is what I have currently: await metaplex.tokens().approveDelegateAuthority({ mintAddress:...
incog's user avatar
  • 567
3 votes
2 answers
98 views

List my NFT to auctionhouse using Metaplex JS SDK returns Cannot read properties of undefined (reading 'currency')

I am trying to use Metaplex JS SDK to list NFT. My code is as per below: const METAPLEX = Metaplex.make(connection) .use(keypairIdentity(wallet)) .use(bundlrStorage({ address: 'https://...
CK Chan's user avatar
  • 31
3 votes
0 answers
49 views

spl-token library in xNFT not working

I was trying to work with the @solana/spl-token package in my xNFT with the latest xNFT-starter repository. When I use any function I get the following error: Can't import the named export 'PublicKey' ...
user3973's user avatar
3 votes
0 answers
61 views

Metaplex JS SDK returning null when jsonLoaded is True

I'm having an issue while trying to get an NFT's JSON data. Regardless of mint address, I keep getting null. (Using @metaplex-foundation/[email protected] on a free QuickNode RPC). I'm trying the following: ...
8bithero's user avatar
  • 411
3 votes
1 answer
123 views

Not enough tokens to mint a limited edition

const freezeTx = await createFreezeDelegatedAccountInstruction( { delegate: WALLET.publicKey, tokenAccount: new PublicKey("...
Nguyễn Quang Huy's user avatar
2 votes
0 answers
54 views

Get owner from PDA if the owner is off-curve - DAS API

Is it somehow possible to get and deserialize the owner of the token account if the owner is a PDA and off-curve around this line - https://github.com/metaplex-foundation/digital-asset-rpc-...
Muhit Raihan's user avatar
2 votes
1 answer
74 views

Metaplex Transfer pNFT failing

I am trying to transfer a pNFT via an anchor program, but it is failing at the TokenProgram. Logs below
Jimii's user avatar
  • 1,032
2 votes
1 answer
61 views

umi functions causing Application error: a client-side exception has occurred

My website works fine locally but when deployed to Vercel, I get a client-side exception error. After checking other parts of the website, I've found the culprit to be in my UMI function code. I'm ...
Miles Donald's user avatar
2 votes
1 answer
146 views

mintV2 with umi Error: Method not Implemented

I'm trying to mint with umi's mintV2 method on devnet for a candy machine that does not have pNFTs set up. The Metaplex doc says the new mintV2 instructions can be used to mint regular NFTs but I'm ...
programmer_b's user avatar
2 votes
0 answers
35 views

How to add twitter and website handles to my spl-token to show in solscan?

I have created an spl-token and added metadata using metaplex createMetadataInstruction. I have added twitter and website links in uri but it is not showing in solscan and even I tried by adding ...
Sonia's user avatar
  • 21
1 vote
1 answer
33 views

How to validate that a cNFT is part of a collection in a program

I want to validate in a program that a cNFT is in a particular collection. Is there a better way to do this than adding a PDA as a delegate to the cNFT collection so that it can sign and call the ...
Slae's user avatar
  • 111
1 vote
1 answer
21 views

Use candy machine in anchor program

Are there examples of calling candy machine and candy guard prgoram from an anchor program?
Jimii's user avatar
  • 1,032
1 vote
0 answers
43 views

CNFT Lock/Freeze possible?

It is possible to freeze/freezeDelegated for metaplex NFTs. Also pNFTs can be locked in user wallet. I am not able to find any such feature for cNFT, is it possible to freeze/lock cNFT in user wallet?
Piyush Chittara's user avatar
1 vote
0 answers
73 views

Help Needed to create PNFT list/sell instruction through Metaplex AuctionHouse

For Non pnft list transactions, I am using the below accounts export declare type SellInstructionAccounts = { wallet: web3.PublicKey; tokenAccount: web3.PublicKey; metadata: web3.PublicKey;...
Kiran Babu Muddam's user avatar
1 vote
0 answers
45 views

Cannot import mplCandyMachine() from @metaplex-foundation/mpl-candy-machine

The imports mentioned in the docs for the JS library are not valid. Following this guide: https://docs.metaplex.com/programs/candy-machine/getting-started, I get the error that 'mplCandyMachine() is ...
Muckee's user avatar
  • 121
1 vote
0 answers
200 views

Minting candy machine v3 umi getting incorrect account owner error using express js endpoint

I am using the below in an endpoint to create a candy machine. Currently getting an incorrect account owner following the guide provided here https://docs.metaplex.com/programs/candy-machine/managing-...
Andrae Browne's user avatar
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 ...
jonasXchen's user avatar
1 vote
1 answer
108 views

transaction.serialize is not a function

I use: **await metaplex.connection.sendTransaction(signedTxs)** but have this error: **transaction.serialize is not a function at StandardWalletAdapter.sendTransaction** do you know how to fix it?
Reza Rezaeian's user avatar
1 vote
1 answer
88 views

Why would the collection be missing from NFT metadata?

I am trying to pull the collection info for some NFTs and getting different metadata back than what is on solscan. Here is my sample code using something from the Genopet Cracked Egg collection. const ...
TedOC's user avatar
  • 11
1 vote
0 answers
67 views

WalletSendTransactionError: unknown signer: <pubkey from phantom wallet>

How do I fix this error/what might be causing it? I'm trying to have a user use their wallet to sign a partial transaction that I built on my backend. WalletSendTransactionError: unknown signer: <...
xkycc's user avatar
  • 99
1 vote
1 answer
176 views

Error TS1259 with Metaplex JS SDK

I am receiving all these errors when working with TypeScript and Metaplex SDK? Anyone know why? 2 import BN from 'bn.js'; ~~ node_modules/@types/bn.js/index.d.ts:598:1 598 export = ...
Bryson's user avatar
  • 63
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 ...
Asim's user avatar
  • 11
1 vote
0 answers
126 views

Phantom - RPC Error -32603 only on production?

I was following a guide on buildspace and the application worked perfectly. It was a Solana NFT minter working perfect with Phantom in localhost. But after I hosted it on Vercel, I started getting ...
user12245003's user avatar
1 vote
0 answers
163 views

Cannot burn nft using metaplex burn instruction

0I want to burn an nft using metaplex sdk. I am using the following burn Instruction: const transaction = new Transaction().add( mpl.createBurnNftInstruction({ metadata: metadataPDA, ...
Muhammad Fahad Saeed's user avatar
1 vote
0 answers
261 views

Deserialize metaplex token metadata instruction data

I would like to dezerialise instruction data to the metaplex token metadata program in node js. For example the instruction data of creating a metadata account v2 or when creating a master edition v3. ...
Tomvkgames's user avatar
1 vote
0 answers
43 views

Use coption Metaplex Beet

I have a misunderstanding and I need your help. I use Metaplex Beet to deserialize data. I'm trying to manage the case of optional data. For that I use COption on my type and the coption() method in ...
Swifty's user avatar
  • 398
1 vote
0 answers
78 views

Failing to update primary_sale_happened on an NFT via token account in anchor program

I'm currently developing an escrowed NFT sale contract and when I try to update the primary_sale_happened field of an NFT, after paying the creators and right before transferring it, I get this error ...
Théo Pomies's user avatar
1 vote
0 answers
30 views

Solana Metaplex fixed-price-listing

I was working through some tutorials on Metaplex and wanting to leverage the metaplex-program-library instead of using Serum for our secondary marketplace infrastructure. Initially, I only want to ...
goldielox's user avatar
1 vote
1 answer
93 views

Adding funds to Metaplex BundlrStorageDriver

I am building an app that allows you to upload a photo and mint it as an NFT on Solana. I am trying to add funds to a BundlrStorageDriver object like this: const storage = metaplex.storage().driver() ...
Grant Sheen's user avatar
1 vote
0 answers
155 views

Attach metadata to existing fungible token

I have tried to use CreateMetadataV2 to attach the metadata to my token, but the token name, symbol and image is still not changed. The metadata is shown in Solana Explorer with no issue. Is there any ...
Jia Yih's user avatar
  • 11
0 votes
0 answers
7 views

how to find thhe eddsa for updating my spl-token

I'm looking for a way to update my eddsa variable, am using metaplex, am new to updating a token in using metaplex. there is my code `import * as mpl from "@metaplex-foundation/mpl-token-...
Emmanuel uzoezie's user avatar
0 votes
1 answer
37 views

Program log: Error: Account is frozen

I previously used a simple NFT on the Metaplex auction house to list, sell, and execute sales. However, now when I try to list my programmable NFT (PNFT), it shows an error: "Program log: Error: ...
Umaid Khalid's user avatar
0 votes
0 answers
17 views

Metaplex CM Cannot Mint NFT - AnchorError caused by account: candy_guard. Error Code: AccountOwnedByWrongProgram

I'm having trouble minting an NFT using @metaplex-foundation/[email protected]. Whenever I try to do so, I get the following error: AnchorError caused by account: candy_guard. Error Code: ...
Soroosh Ansari's user avatar
0 votes
0 answers
32 views

Error when minting a pNFT collection with candy machine and umi

I am trying to mint a pNFT collection with candy machine using the umi library. But my code is failing when trying to insert and mint my candy machine items. async function mintPnftFromCandyMachine() {...
Jimii's user avatar
  • 1,032
0 votes
1 answer
40 views

Minting from CandyMachine in the front end: "Class extends value undefined is not a constructor or null"

I am trying to mint from candy machine in React and following this example from the docs: import { mplCandyMachine } from '@metaplex-foundation/mpl-candy-machine'; import { createUmi } from '@metaplex-...
Leon's user avatar
  • 1
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 ...
Effe2's user avatar
  • 683
0 votes
1 answer
42 views

How do I breed to NFT on Solana?

I would like to breed NFTs on the Solana blockchain. Does Metaplex offer a feature for breeding two NFTs, or can we create a custom Rust program for this purpose?
Umaid Khalid's user avatar
0 votes
0 answers
16 views

java.lang.IllegalArgumentException: Size must be known in advance when using READ_ALL

I want to fetch an Account using the SolanaKt library Code: try { val serializer = SolanaAccountSerializer(ProgramInfo.serializer()) val account = solana.api.getAccountInfo(serializer, ...
Anam Ansari's user avatar
0 votes
1 answer
76 views

Getting error when I'm going to mint NFT on testnet using Metaplex

Here is my mint contract use anchor_lang::prelude::*; use anchor_lang::solana_program::program::invoke; use anchor_spl::token::mint_to; use anchor_spl::token::{MintTo, Token}; use mpl_token_metadata::...
Isha Padalia's user avatar
0 votes
0 answers
59 views

Mint Error TypeError: Cannot read properties of undefined (reading 'length')

I'm using @metaplex-foundation/umi version 0.8.2. I upgraded from 0.7.14 because the older version doesn't install correctly anymore(get error missing serializers module) with the new version my mint ...
Miles Donald's user avatar
0 votes
1 answer
54 views

How to invoke mpl_token_metadata::processor::lock from custom onchain program?

I have been working with pNFT lock function but I can't figure out how to invoke the mpl-token-metadta function. Anyone has an experience with lock function? Here is references. https://github.com/...
Julian's user avatar
  • 116
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", '...
Abrar Musa's user avatar
0 votes
1 answer
68 views

I want to get all SPL tokens that are created and have some metadata

Earlier this was done through Solana token registry, although since its shut down what is the new way of fetching the latest tokens
Kid Knot's user avatar
0 votes
0 answers
62 views

Cannot sign transaction since solana wallet standard update, signTransaction function

Since the new update, my dapp has broken. As expected, and instructed from the official channels I updated my code. I am passing in a prop to call my mint function, and the error im receiving is ...
Lionel Mackenzie's user avatar
0 votes
1 answer
51 views

Can we make Metaplex pNFT immutable?

I know that we can make the old Metaplex NFT standard NFT immutable. But, can the new pNFT standard become immutable as well?
gauravtechie's user avatar
0 votes
0 answers
56 views

NextJS doesn't build wallet instructions properly with Solita

I'm receiving the following error message when trying to send a transaction, using the Wallet Adapter in Nextjs 13, with a Solita generated SDK. Backpack & Phantom: WalletSendTransactionError: ...
Chris's user avatar
  • 131
0 votes
1 answer
287 views

Error "An unexpected error occurred: "https://registry.yarnpkg.com/ccxt/-/ccxt-1.63.71.tgz: Request failed 404 Not Found." occurs when running install

I cloned metaplex(v1.1.1) and ran yarn install and got an error. If anyone knows how to solve this problem, please let me know. Environment node --version : v16.18.0 yarn --version : 1.22.19 ts-node --...
ysaito's user avatar
  • 21
0 votes
0 answers
140 views

WalletSendTransactionError: Signature verification failed when minting NFT from Candy Machine

I am trying to add the capability for a user to be able to mint and NFT from a Candy Machine from the frontend of my website. I am running into this error when the user approves the mint transaction (...
xkycc's user avatar
  • 99
0 votes
0 answers
79 views

How do I get a user to pay for an NFT mint using Candy Machine?

I am trying to create an API call for my backend that would allow a user to mint an NFT through my frontend. How would I go about doing this? Specifically, how would I make the user pay seeing as the ...
xkycc's user avatar
  • 99
0 votes
0 answers
129 views

How to create a Candy Machine using Metaplex JS SDK

I have a few questions that I have commented in the code included below that is meant to create a Candy Machine to mint song NFTs from. Note that all of the NFTs should be same (the only difference ...
xkycc's user avatar
  • 99