Questions tagged [metaplex]
The metaplex tag has no usage guidance.
249
questions
10
votes
2
answers
322
views
How do you get token symbols, name, images, and other metadata using new Metaplex API?
It used to be solana token list but it's deprecated now.
How do you search for metadata using new metaplex API?
Answer:
const mintData = await (
await metaplex
.tokens()
....
9
votes
2
answers
746
views
How do I get all NFTs for a given wallet?
Given a specific public key of a wallet, how do I get all NFTs that wallet owns?
9
votes
2
answers
88
views
How to make my custom "fungible" token appear with logo on Solflare?
The Solana Token List is now archived.
So I tried adding the token metadata to metaplex.
Here's what I uploaded:
{
"description":"Fake USDC for testing.",
"image":&...
8
votes
1
answer
103
views
Instruction error executing UpdateMetadataAccountV2 instruction
I'm trying to update metadataAccount of an NFT. I'm using a web interface with Phantom Wallet.
Everything works fine, until when I approve the transaction I got this error
{
code: -32003,
message: ...
7
votes
2
answers
377
views
Metaplex create() fails on localhost with: Attempt to load a program that does not exist
I am following the Metaplex JS documentation to mint an NFT with Metaplex. I have solana-test-validator running locally, and my Connection object is working fine with @solana/web3.js and @solana/spl-...
7
votes
1
answer
423
views
How can I freeze NFT in user wallet
There are a few instructions in Metaplex which would allow a delegate to freeze an NFT in user wallet, so I though it would be possible to stake user NFTs by freezing them in their wallets, so that I ...
7
votes
1
answer
184
views
Verify Merkle tree in JS - Candy Machine v3
I am attempting to verify a Merkle Tree using the metaplex SDK for the Candy Guard from Cm v3. Specifically I wanna get this working in JS, same as this in Rust
What I have is this:
import {
...
6
votes
1
answer
225
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 ...
6
votes
2
answers
265
views
Use any Random Function in anchor lang
Rand lib is supported in rust but not supported in anchor lang. I want to generate a random number lets say between a range of 0-10. Is there is a way I can do in anchor lang. Or alternatively, if ...
6
votes
1
answer
128
views
How to use the Metaplex `nft-packs` program?
Does anyone have references for how to use the Metaplex nft-packs program? Couldn't find anything in the discord. I read through the Readme, but still don't really understand how the program works.
...
5
votes
2
answers
113
views
Using ledger wallet to create Candy Machine
Metaplex docs says that I can create a new wallet with solana CLI to be used on CM creation. This is the command to set it as default wallet:
solana config set --keypair ~/.config/solana/devnet.json
...
5
votes
3
answers
767
views
How do you add symbol, name, and logo to a token?
When creating a token, I want to add symbol, name, and logo to my token so it shows up on wallets and explorers correctly.
How do I do that?
5
votes
1
answer
78
views
How do I add metadata to a Realms DAO community token?
As per Solana Labs token-list instructions, now it's done with Metaplex tools. Trying to do that with Strata update token tool, but my address is not the mint authority, the token was issued using DAO ...
5
votes
1
answer
80
views
Possible to add multiple approveDelegateAuthority() in the same transaction?
I am trying to approve delegation of multiple NFTs without having multiple transactions. Is this possible with the metaplex js library? Here is the code:
await this.metaplex.tokens()....
5
votes
1
answer
174
views
Filtering by collectionID tokens owned by a solana wallet
I would like to do the following on the front-end. I would like to have a list of "collections" we support and which user can select from. User connects to Phantom wallet and selects "...
5
votes
1
answer
209
views
Deserializing Metaplex Metadata
I'm currently attempting to retrieve the collection field from the Metaplex metadata of a NFT in python. My results are half correct but the collection key deserialized is entirely different than what ...
5
votes
2
answers
133
views
How to make an offer on a NFT that’s not for sale
I'm using metaplex and have to create a feature that allow users to make an offer on a NFT that isn't put on for sale.
I already implemented normal selling flow - sell and execute-sale with auction ...
5
votes
2
answers
128
views
How to generate an arweave link using a generated keypair and the metaplex SDK?
These is my main code
// Generating keypair
const keypair = Keypair.generate();
await connection.requestAirdrop(keypair.publicKey, LAMPORTS_PER_SOL);
try {
const arweaveLinks = await ...
4
votes
2
answers
150
views
How can I verify that an NFT is immutable?
Is there a way to verify if an NFT based on the Metaplex standard is immutable and cannot be changed by the original creator?
4
votes
1
answer
230
views
How do I create a spl token with a rust anchor and add it to the token list?
I want to create my SPL token and upload it to https://github.com/solana-labs/token-list. But I found only articles with no-code solution: https://learn.figment.io/tutorials/sol-mint-token or using ...
4
votes
1
answer
123
views
Where can I find candy-machine version 1?
I'm looking for candy-machine version 1 codebase for to easy examples for token-metadata implementation. I wasn't able to find it anywhere on GitHub.
4
votes
2
answers
103
views
How to connect two Candy Machines?
I need to create a collection with a total of 100 NFTs, where the first 10 (IDs 0 to 9) will be minted to the same wallet from the start, and the remaining 90 will have the possibility to be minted ...
4
votes
1
answer
108
views
How to find a masterEdition PDA in Metaplex fixed-price-sale
I'm currently trying to initialize a selling resource and can't get past the masterEdition attribute.
Whenever I try to fetch the masterEdition PDA using the referenced seeds [“metadata”, ...
4
votes
2
answers
98
views
How to update any of the on-chain attribute of a NFT in Solana?
I have an NFT on Solana and I would like to update any of the one attributes that is defined in the Token Metadata standard.
4
votes
2
answers
153
views
minting cNFTs with Solana Pay QR code
I'm trying to create a qr code so people can scan it and mint a cNFT. I'm using a transaction request as shown in the Solana Pay docs and using Metaplex Bubblegum for state compression. This is on ...
4
votes
4
answers
681
views
Get NFTs by collection address and owner
I'm trying to get all the NFTs in a collection that a wallet owns, but I only achieved get all the NFTs of a collection, or all the NFTs of a wallet (multi collections).
import { useConnection, ...
4
votes
1
answer
62
views
Metaplex candy machine rust program redeploy
I extract the lib.rs file from the Metaplex candy machine folder. Created a new anchor project via anchor init, pasted the smart contract then I run anchor keys list and pasted the key in declare_id ...
4
votes
1
answer
91
views
NFT Breeding Alogrithm
I need a reference to an NFT breading algorithm. The goal is to implement an algorithm that mints an NFT based on the metadata of 2 selected NFTs. The mint should be unique so that no other NTS with ...
4
votes
1
answer
93
views
Metaplex SDK - Upload Metadata Devnet
I am trying to use the new Metaplex JavaScript SDK to upload NFT metadata from my frontend. https://github.com/metaplex-foundation/js#uploadMetadata
Wallet context provider setup:
const network = ...
4
votes
1
answer
113
views
How to have just 1 approve in phantom when try to create several NFTs at the the same time?
I'm trying to create a feature on my web page where the user is able to create their own collection of nfts. To make these I follow these workflow:
The user want to create a collection of 5000 nfts ...
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:...
3
votes
1
answer
438
views
What is Program Id of Metadata Program on Devnet?
I'm testing a program which integrates TokenMetaData Program by Metaplex. I wanted to check what is the program id of the same on devnet?
3
votes
1
answer
203
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
80
views
Cost of minting 1 nft is not 0.00001
I used Metaplex to create an NFT. I thought it would cost to mint 0.00001 SOL, but it is costing a mint value of 0.0119812 SOL. I looked into transactions https://solscan.io/tx/...
3
votes
1
answer
132
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 ...
3
votes
2
answers
75
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 ...
3
votes
1
answer
186
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
1
answer
344
views
How can I create a transaction that creates an NFT when signed by the user using Metaplex?
I made TypeScript code where I could make an NFT using an image-link as the metadata (taking help from the Solana Stack Exchange site). Now. When I tried to implement it in my frontend, I was getting ...
3
votes
1
answer
42
views
Getting SendTransactionError
I'm getting "SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: Program failed to complete" Where did i go wrong?
const ...
3
votes
1
answer
255
views
Uploading an NFT Metadata(image) through an image link
I wanted to ask If for example I have an image link(imgur.com etc) and I wish to use that as the Metadata for my NFT. Would that be possible?
I tried doing that:
const metaplex = Metaplex.make(...
3
votes
2
answers
1k
views
Adding Metadata for Fungible SPL tokens (Metaplex)
I'm trying to add metadata for a fungible SPL token, which was done via token-list before.
I have tried using strata protocol, but it does not show up on the list so cannot be done. Is there a simple ...
3
votes
3
answers
188
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" ...
3
votes
1
answer
72
views
how to fetch mint address list from creator (without metaplex)?
Can I fetch the data mint address from a creator? I need to know what mint addresses have been generated from the creator address.
Can I use the native way without the functions from the Metaplex ...
3
votes
1
answer
130
views
how to add new nfts to a candy machine collection?
I have an nft collection that I have created using candy machine. Now I want to add new nfts to it. How do I add the new nfts to the collection?
3
votes
1
answer
65
views
findAllByCreator don't work on custom rpc or mainet-beta
I'm running const nfts = await metaplex.nfts().findAllByCreator({ creator });
the request only works in devnet: 'https://api.devnet.solana.com/',
but when I change to another rpc it just gives me an ...
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://...
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' ...
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:
...
3
votes
1
answer
123
views
Not enough tokens to mint a limited edition
const freezeTx = await createFreezeDelegatedAccountInstruction(
{
delegate: WALLET.publicKey,
tokenAccount: new PublicKey("...
2
votes
1
answer
147
views
Is there an audio file format supported by Metaplex
I've seen support for mp4 under the animation_url field and was wondering, is there a field for adding an audio file to an NFT using Metaplex?