Questions tagged [metaplex]
The metaplex tag has no usage guidance.
242
questions
2
votes
0
answers
24
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 ...
3
votes
2
answers
987
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 ...
1
vote
1
answer
192
views
How to upload Metadata to arweave at backend using solana metaplex js sdk?
I have tried uploading metadata to arweave from the frontend using the metaplex.nfts().uploadMetadata and it is working great. I would like to know if it is possible to upload from the backend using ...
1
vote
1
answer
450
views
@metaplex-foundation/js .findByMint() getting TypeError: Cannot read properties of undefined (reading 'toBuffer')
I am using Node.js
I am trying to get NFT metada but getting this error:
file:///home/tiosam/sns-tw-bot/node_modules/@metaplex-foundation/js/dist/esm/plugins/nftModule/pdas.mjs:10
return Pda.find(...
3
votes
1
answer
388
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?
4
votes
1
answer
121
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.
0
votes
1
answer
62
views
How can I prevent a user with several wallets from performing the same action several times?
I have a little logic problem. On one of my projects, I want to set up a voting system. Only NFT holders can vote. My issue is the following:
A person has 5 NFTs, he is the only holder of 5 NFTs so ...
1
vote
1
answer
103
views
Need assistance creating a custom type of NFT
I’m new to development on Solana, and I’m attempting to create a number of NFTs that don’t have associated art and simply store metadata on-chain.
These NFTs will represent real assets. I’ve looked ...
6
votes
1
answer
113
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
vote
1
answer
41
views
Both men and female traits for characters
I have both men and female traits for characters... but how do I generate men and female characters in a simple way?
Can I first generate females, then generate men after that, and then use a script ...
1
vote
1
answer
254
views
How to transfer Candy Machine Authority?
How do we transfer Candy Machine Authority and the collection NFT authority to a new wallet? Want to keep this on a Ledger after the Candy Machine is created.
Do we need to use Metaboss for this? ...
1
vote
1
answer
51
views
Holaplex Devnet GraphQL API?
I am working on an NFT marketplace app that I found on GitHub.
The app uses the Holaplex GraphQL API for things like fetching NFTs from auction houses. And then using the Solana wallet-adapter for ...
0
votes
0
answers
46
views
Metaplex JS implementation in React Native: TypeError: Conversion from 'BigInt' to 'number' is not allowed [duplicate]
Trying out this package in React Native
RN Version: 0.69.5
Metaplex js version: 0.15.0
@solana/web3.js: 1.41.6
Error log:
TypeError: Conversion from 'BigInt' to 'number' is not allowed.
App@http://...
4
votes
1
answer
75
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 = ...
0
votes
2
answers
265
views
Create collection using metaplex js sdk
I would like to create a collection and then add nft to it. The code I use:
const a = (
await metaplex
.nfts()
.create({
name: "My off-chain name",
uri: &...
1
vote
2
answers
75
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');
0
votes
1
answer
73
views
Metadata gathering Script for Metaplex using React, need help
I've been trying to build a simple script that pulls the metadata from Metaplex NFTs using the React code below:
import { Metaplex } from "@metaplex-foundation/js";
import { Connection, ...
0
votes
2
answers
414
views
Is there a way to query Metaplex token metadata?
I was wondering if there was a way to get the metadata for NFT tokens minted through the Metaplex standard? I was able to find the data for Solana fungible tokens using the code listed below and I ...
1
vote
1
answer
26
views
Cannot find `MetadataProgram.PREFIX` anymore from @metaplex-foundation/mpl-token-metadata:^2.2.3
I have upgraded @metaplex-foundation/mpl-token-metadata to the latest version today (version = 2.2.3).
But I cannot find MetadataProgram.PREFIX any more, I know it's just a string metadata, but it ...
1
vote
1
answer
287
views
Importing '@metaplex-foundation/js' results in 'process is not defined' error
It looks like someone previously asked the question and deleted it - sadly I can see the question in search engines but can't see the answer!
When I import Metaplex:
import { Metaplex } from "@...
2
votes
1
answer
49
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?
1
vote
2
answers
535
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?
0
votes
1
answer
233
views
Read nft metadata in anchor
So I want to be able to read the fields of an NFT metadata account from within my instruction logic.
I'm passing in the NFT as an unchecked account in my accounts context struct like so (note the ...
5
votes
2
answers
124
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 ...
0
votes
1
answer
51
views
Metaplex findByMint() shows 'pending' instead of actual NFTs
I am following the the Metaplex Examples Repository recommended by the metaplex docs:
const getNFT = async () => {
const nft = await metaplex
.nfts()
.findByMint(testIdentityTokenIssuer....
1
vote
1
answer
58
views
How to use update_metadata_accounts_v2 with invoke_signed?
https://github.com/metaplex-foundation/metaplex-program-library/blob/1596a05756aae9d62e91f192786e373ed7369196/candy-machine/program/src/processor/mint.rs#L589
I wondering 3 things.
How can i know ...
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 ...
1
vote
2
answers
26
views
How can I configure my nft project with the sugar cli to allowlist only my partner and I to mint 2 nfts before the public mint goes live?
Basically I just want 2 of 50 nfts to be allowlisted and the rest would just be publicly mintable after the go live date?
2
votes
2
answers
78
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
1
answer
143
views
How to use solana-wallet-adapter with metaplex-foundation/js
How to use a wallet with metaplex-foundation/js rather than Keypair?
This will give a compilation error
const metaplex = Metaplex.make(connection).use(
keypairIdentity(wallet)
)
2
votes
1
answer
101
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 (...
4
votes
1
answer
191
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 ...
1
vote
1
answer
46
views
How to verify my smartcontract/program as creator on metaplex minted NFT using rust? [closed]
I want to add my program/smart-contract as creator and verify that. I am using anchor and mpl library on rust.
pub fn mint_nft(
ctx: Context<MintNFT>,
creator_key: Pubkey,
...
6
votes
2
answers
317
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-...
0
votes
1
answer
79
views
How to get nft collection name?
Im using Metaplex JavaScript SDK and sometimes in uri link has a collection field, but what other way is there to get nft collection name when i have a similar data
0
votes
2
answers
63
views
Is it possible to release a NFT collection then later mint more from the same collection?
If I wanted to release 1k NFTs, then if they sell out release more.
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 ...
5
votes
2
answers
104
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
...
1
vote
1
answer
91
views
mint multiple NFT at a time
I never saw (nor found anywhere) a solution to allow the user to mint more than one NFT at once using candy machine; any idea or hint to were can I look for this, if possible?
2
votes
1
answer
103
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 ...
0
votes
1
answer
42
views
How to derive masterEditionAccount MasterEdition2 of NFT in meta plex program? (C#)
I am trying to implement the NFT burn from the metaplex programm:
https://github.com/metaplex-foundation/metaplex-program-library/blob/master/token-metadata/js/src/generated/instructions/BurnNft.ts
I ...
1
vote
0
answers
26
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 ...
7
votes
1
answer
331
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 ...
2
votes
3
answers
384
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
2
answers
39
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
1
answer
108
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
2
answers
87
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 ...
0
votes
1
answer
180
views
NFT metadata (.MP4) [duplicate]
I'm looking to deploy MP4 NFTs and I already have the 0.json/0.mp4 files.
I'm just wondering how I would go about with the metadata. The metaplex metadata requires you to have an image field.
I'm not ...
2
votes
1
answer
77
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 ...
1
vote
1
answer
81
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"), "...