Questions tagged [metaplex]
The metaplex tag has no usage guidance.
249
questions
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://...
1
vote
1
answer
27
views
candyMachine.itemRemaining is BigNumber instead of number
I'm creating a function to tell the content of a candy machine and running into the issue that items remaining is in BigNumber instead of number. I want to show if zero items remaining then say the ...
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 ...
1
vote
2
answers
67
views
Can I use the meta plex js SDK to update SPL token meta data?
I am creating a token mint and was wondering, if i can use the meta plex sdk to upload meta data for it.
I am trying like this.
const mint = await createMint(
pg.connection,
pg.wallet.keypair,
...
0
votes
1
answer
87
views
Why does fetching of compressed nfts by collection/owner not work?
Context: Ran the solana compressed nfts scripts successfully about 2 weeks ago from creating and minting to fetching by collection/owner using the helius devnet rpc endpoint.. This is the link to the ...
1
vote
0
answers
192
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-...
0
votes
0
answers
105
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",
'...
2
votes
2
answers
373
views
Attach metadata to token with metaplex
I am trying to attach metadata uploaded to arweave to a token. I am using createCreateMetadataAccountV3Instruction from @metaplex-foundation/mpl-token-metadata, but I am getting an error.
This is the ...
0
votes
1
answer
66
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
0
votes
1
answer
113
views
create_metadata_account_v2 is gone what should I do?
create_metadata_account_v2 is not available anymore.
Now I can not run my anchor tests because anchor-spl relies on create_metadata_account_v2. How can I fix that?
0
votes
1
answer
154
views
Error while mint NFT on Solana with Metaplex - erro: Failed to serialize or deserialize account data: Unknown
Describe the bug
The error there is when I trying mintNft
To Reproduce
const metadataURI = 'https://metadata...'
const myWallet = new Metaplex.NodeWallet(walletKeyPair);
const connection = new ...
1
vote
1
answer
98
views
ProgramNotRecognizedError: The provided program name [mplCandyGuard] is not recognized in the [devnet] cluster
I am trying to mint NFTs from a candy machine v3 using the umi library as shown in this https://docs.metaplex.com/programs/candy-machine/minting . I am using the following code -
import React from '...
1
vote
0
answers
87
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 ...
2
votes
1
answer
88
views
CPI invocation signing issue
I'm trying to freeze an NFT, using the following code in the contract:
let cpi_accounts = token::Approve {
to: user_token_accout.to_account_info(),
delegate: delegate.to_account_info(),...
0
votes
0
answers
61
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 ...
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?
2
votes
1
answer
71
views
Cannot Create NFTs on Localhost
I'm trying to create some NFTs on localhost for testing purposes. I am currently trying to use sugar cli for this.
However, I'm getting the following error with shadow drive and a similar one with ...
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 ...
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: ...
0
votes
1
answer
284
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 --...
6
votes
1
answer
219
views
How to know the balance of a compressed token account?
I want to use bubblegum, Metaplex's compressed NFT standard in my project.
I want to have token-gated functions that check the balance of token accounts for compressed NFTs.
Do I have to redeem the ...
0
votes
1
answer
36
views
Clear JS - Metaplex is not a constructor
I am trying to construct new Metaplex with connection, but I am getting error
Uncaught (in promise) ReferenceError: Metaplex is not defined
My code:
<h1>Moralis API Response:</h1>
<div ...
1
vote
1
answer
104
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?
1
vote
1
answer
87
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 ...
0
votes
1
answer
91
views
how to parse master edition account in anchor? (MasterEditionV2)
im define in account context but give me error
#[account(mut)]
pub master_edition : Account<'info, mpl_token_metadata::state::MasterEditionV2>,
but it show error lint like this :
the trait ...
3
votes
1
answer
200
views
Get USDC Metadata
I can get the metadata of any token I build like that:
import { Metaplex, keypairIdentity } from '@metaplex-foundation/js';
import { Metadata } from "@metaplex-foundation/mpl-token-metadata";...
3
votes
1
answer
129
views
How can I store more data on-chain in an NFT?
I am creating an NFT that stores a small amount of data - less than 1KB - inside it. The data should be on-chain - not in an external JSON file - as the owner should be able to destroy the NFT easily ...
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 (...
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: <...
1
vote
1
answer
87
views
Metaplex `Nft` object has a 'mint address' and a 'mint account'. What is the difference?
I understand what a mint account is. For example, I know that USDC has a single mint address on mainnet.
I know what associated token accounts are. For example, I know that my personal store of USDC ...
1
vote
2
answers
504
views
How to verify a Metaplex collection?
So my NFT metadata's collection field is like this:
address: "string"
key: "string",
verified: false
Also the collectionDetails is null.
My question is how to verify the ...
0
votes
0
answers
78
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 ...
0
votes
0
answers
128
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 ...
0
votes
0
answers
73
views
Metaboss update error 0x37
Trying to update NFT metadata using metaboss update, but when uploading new data with the keypair set as the update authority i'm getting 0x36 (cannot unilaterally verify another creator), and when i ...
3
votes
2
answers
74
views
How exactly do Metaplex collections work
I want to build an nft-minting program with different tiers. I want users nfts to be able to level up, which would mean that the nft has a change in attributes such as its image.
I'm exploring the ...
1
vote
1
answer
45
views
Is there way to differentiate accounts from pdas?
Out of curiosity, I was wondering if there was a way to tell just by looking at the address, if one can tell if the address is a data account or a pda instead.
I'm personally having a hard time ...
2
votes
1
answer
67
views
TypeScript production code to mint an NFT vs anchor testing code
How would I go about converting the following testing code (from an anchor project) to something that would interact with my frontend in production (or convert it into a function to be used in react ...
0
votes
1
answer
334
views
Cant access mainnet-beta (403 forbidden)
I'm trying to get a list of NFTs held by a wallet and display them using metaplex js. The problem is when I try to connect to mainnet-beta, I get a 403 forbidden error. I read that Solana restricts ...
3
votes
3
answers
186
views
Minting an edition NFT from the master edition - what is "metadata mint"?
I'm writing code to mint an edition NFT from a master using metaplex. The problem is when I call mint_new_edition_from_master_edition_via_token() it has a parameter called "metadata_mint" ...
2
votes
1
answer
186
views
Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Cross-program invocation with unauthorized signer
I am trying to run a test on anchor/metaplex code that should be minting a new NFT/creating a master edition account, however my test is failing and I'm not sure why. Here is the error message:
0 ...
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 = ...
3
votes
1
answer
183
views
How to make the json for an mp3 Metaplex programmable NFT
What information would I put in a Metaplex programmable NFT's json if I wanted to make a music nft? Where should I put the link to the mp3 file and what can I leave unfilled out?
I have a current ...
3
votes
0
answers
48
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' ...
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 ...
0
votes
0
answers
44
views
shadow drive.createStorageAccount returns "Server response status message: Timed out awaiting confirmation on transaction"
I need to upload photos to shadow drive. this is the complete code. all you need is to create a .ts file and run ts-node filename
import { ShdwDrive } from "@shadow-drive/sdk";
import { ...
1
vote
1
answer
30
views
can add increment number in nft name when mint based on mint order?
i made a contract for the user to be able to mint nft using anchor + metaplex.
can i auto increment the nft name when prompted depending on the order?
ex : Name #1, Name #2, Name #3, Name #4, ..... ...
0
votes
0
answers
21
views
A function that allows user to connect only when they hold a specific NFT?
I am working on node.js and I want to create a function for my dapp that when a user connects their wallet - their wallet is scanned and only when they have a specific NFT then only they can connect.
...
0
votes
2
answers
64
views
How can i list a NFT?
I'm building a marketplace for 1/1-NFT's. I'm trying to create a listing mechanism, which sends the metaplex-NFT to a PDA from where it can be bought, from someone else.
To unlist it the pda has to ...
2
votes
1
answer
83
views
Can I choose token id to mint from Candy Machine collection?
I have Candy Machine V2 with 10 tokens with different 0.png - 9.png images.
I would like to mint those tokens in specific order, can I pass some id to mint function to achieve that?
For now I was ...