Questions tagged [metaplex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
2 answers
230 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?
  • 2,145
7 votes
2 answers
70 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":&...
7 votes
1 answer
60 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: ...
  • 233
7 votes
2 answers
184 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() ....
6 votes
1 answer
79 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 ...
5 votes
3 answers
106 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?
  • 2,145
5 votes
1 answer
81 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
2 answers
88 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
70 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?
  • 43
4 votes
1 answer
103 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
1 answer
70 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
2 answers
80 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
57 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 ...
  • 143
4 votes
1 answer
51 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
58 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.
  • 1,092
4 votes
1 answer
35 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
113 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 ...
4 votes
1 answer
33 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
81 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
43 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. ...
  • 1,619
4 votes
2 answers
104 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 ...
3 votes
2 answers
58 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-...
3 votes
1 answer
172 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
2 answers
79 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 ...
3 votes
1 answer
62 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
52 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 ...
3 votes
1 answer
21 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
0 answers
34 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:...
  • 431
2 votes
1 answer
33 views

Can you combine transactions into one on the front end?

For example, if I wanted to use Metaplex's Program Library to do something on their program, and wanted to create a front end for it and include a small Solana fee for my work, is it possible to put ...
  • 431
2 votes
3 answers
88 views

How much sol is required to mint 1000 items using sugar candy machine?

I have minted 1000 items using sugar and candy machine in devnet, and everything is fine. now I have created new wallet in mainnet and tried to mint, but I am getting Error running command (re-run ...
2 votes
1 answer
20 views

How to tell if NFT is frozen without test-sending?

simple question here, how can I tell if an NFT is frozen without test-sending? Is there a field in the metadata, or a way I can acquire that information through metaplex? Thanks :)
  • 431
2 votes
1 answer
82 views

How can I get all NFTs for a wallet without using metaplex-foundation/js

Given the public key of a wallet, how would one get all the NFTs owned by this wallet, without using the metaplex-foundation/js package? The reason I don't want to use metaplex's library is because ...
2 votes
1 answer
113 views

How do I get token name, symbol, and logo?

Given a token, how do I determine the token's name, symbol, and logo?
  • 2,145
2 votes
1 answer
37 views

Walllet is "locked". Can't pay transaction fees to close/update program

I am currently facing this issue that doesnt let me close my program (I don't really want to loose all the rent right now) https://forums.solana.com/t/help-me-my-wallet-was-locked-unable-to-pay-a-...
2 votes
2 answers
55 views

How to get all nfts belonging to a collection on Solana?

Is there any easy way like a fetch request or something to get all nfts of a collection?
2 votes
2 answers
23 views

Can you change the fee payer for the cost of gas for the minting of NFTs while using candy machine v2?

I want to launch a candy machine, but I cover the cost of gas to mint the NFT. Therefore, the only thing the user pays is the price of the mint. Is this possible? If so how would I go about making ...
2 votes
2 answers
54 views

Freezing SPL Token accounts Via JS SDK

I am trying to build a 'web2'/'weak' NFT staking system where NFTs are frozen in holder's wallets. Currently, the tokens do not have any freeze authority set. Does this mean they cant be frozen by me ...
  • 21
2 votes
1 answer
67 views

How can I efficiently update the metadata authority for an entire NFT collection?

I need to update the authority of an NFT collection (authority on the metadata account). So when I use metaplex.nfts().update(), I need to sign a transaction for every NFT. How can I make all updates ...
  • 233
2 votes
1 answer
34 views

Can't find owner's tokens with Metaplex

I'm working on a front-end. I want to fetch all the NFT of a specific collection the user owns. I used to do: const tokens = await metaplex .nfts() .findAllByOwner({ owner: provider.publicKey }...
2 votes
1 answer
26 views

What is the purpose of 'properties' field in Metaplex Token Standard?

The non-fungible standard mentioned here: Metaplex Docs has 'properties' field in its example. What is the purpose of this field? Is it required for the collection to add this field in its NFTs?
  • 159
2 votes
1 answer
34 views

Reliable way to add "extra" NFTs to a collection post minting

Let's say I release a collection of 1000 NFTs and it minted out. Then suddenly the team decided to add 100 new rare NFTs but have it under the same collection. What's the standard and reliable way in ...
2 votes
1 answer
58 views

What were "printing tokens" used for?

I noticed in the token metadata program that there were deprecated ixs to create "printing tokens" from a master edition. It seems like the current standard can mint a new edition directly ...
  • 233
2 votes
1 answer
69 views

Can I airdrop a frozen Master Edition token?

If I create an NFT by setting mintAuthority to null and foregoing a metaplex Master Edition, I retain the ability to arbitrarily freeze and thaw NFTs so long as I retain freezeAuthority on the token (...
1 vote
2 answers
30 views

What's the best way to use a u16 as a seed for a PDA?

Does something like this work? Rust: &x.to_be_bytes() JavaScript: new anchor.BN(x, 'be');
1 vote
2 answers
437 views

Is there anyway to get every single listed NFT (even better if not listed) of a Magic Eden collection?

The normal /listings endpoint does not give the metadata of the NFT. How can I also get the metadata and info of the NFT?
  • 325
1 vote
2 answers
76 views

Create a collection of identical NFTs and airdrop them to a list of wallets [closed]

I would like to create a collection of NFTs all of which have the same image and metadata to be airdropped to a list of wallets. I was wondering what would be the best way to do it?
  • 11
1 vote
1 answer
61 views

How to make token logo appear consistently in Phantom?

I have created a token. The mint is a PDA, so I had to add the metadata from within the Rust code in my Program, calling Metaplex's MetadataProgram. This has been a long and rocky journey, but I ...
  • 2,121
1 vote
2 answers
118 views

How to create a metadata account for a token whose mint authority is a PDA?

My token's mint authority is my Program. I need to add metadata so that the token appears nicely in my users' wallets. So in order to add the metadata, I need to create a new instruction into my ...
  • 2,121
1 vote
2 answers
149 views

Metaplex : How to distinguish fake nft from real one with right collection

i process transactions and get metadata of nft but sometimes there are many fake one but i can't distinguish if it's fake or not, so i put them in the real collections. Let's look at some details. let'...
  • 113
1 vote
1 answer
38 views

How can i add metadata on solana nft using javascript?

I want to add metadata on solana nft. export const createToken = async () => { let bs58 = require("bs58"); const connection = new Connection(clusterApiUrl("devnet"), "...
  • 111