Questions tagged [metaplex]
The metaplex tag has no usage guidance.
184
questions
10
votes
2
answers
203
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
77
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
2
answers
420
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?
8
votes
1
answer
69
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: ...
6
votes
2
answers
161
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
132
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 ...
6
votes
0
answers
93
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 {
...
5
votes
2
answers
172
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-...
5
votes
2
answers
89
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
198
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
62
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
117
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
147
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
125
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
111
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
86
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
113
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
110
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
94
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
78
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
68
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
1
answer
53
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
64
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
42
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
97
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
65
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.
...
3
votes
1
answer
230
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
107
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
67
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
2
answers
251
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, ...
3
votes
1
answer
41
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
31
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()....
3
votes
0
answers
55
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:...
2
votes
1
answer
38
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 ...
2
votes
1
answer
105
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 ...
2
votes
1
answer
175
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 ...
2
votes
3
answers
189
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
251
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
votes
1
answer
42
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 ...
2
votes
1
answer
85
views
How to import METADATA_PROGRAM_ID. (Buildspace Solana Staking Anchor course)
I'm doing the Anchor Staking part of the solana Buildspace course. I get this error when running the first test:
ReferenceError: METADATA_PROGRAM_ID is not defined
This is the Anchor Smartcontract I ...
2
votes
1
answer
73
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 :)
2
votes
2
answers
549
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 ...
2
votes
1
answer
88
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
109
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(...
2
votes
1
answer
35
views
Metaplex metadata program creator is verified without signing
In this transaction
a metadata account is created in instruction 5.6. (Parsed instruction).
In the create metadata instruction from metaplex-metadata-program there is a loop over the creators array. A ...
2
votes
1
answer
100
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
68
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
33
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
69
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 ...
2
votes
1
answer
108
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 ...