Questions tagged [candy-machine-v2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
118 views

Metaplex CM Cannot Mint NFT - AnchorError caused by account: candy_guard. Error Code: AccountOwnedByWrongProgram

I'm having trouble minting an NFT using @metaplex-foundation/[email protected]. Whenever I try to do so, I get the following error: AnchorError caused by account: candy_guard. Error Code: ...
Soroosh Ansari's user avatar
0 votes
0 answers
45 views

Get list of Minters and Amount for Candy Machine

I am looking for an efficient way of getting all the minters and how many they minted from a Candy Machine mint. I'm not 100% on what version was used. Transaction is Candy Machine Core and the inner ...
Bryon M's user avatar
  • 170
2 votes
1 answer
121 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 ...
Felek's user avatar
  • 23
4 votes
1 answer
99 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 ...
Abdullah Qureshi's user avatar
2 votes
2 answers
145 views

Update NFT metadata after mint

Just need to know how to update NFT metadata after minting NFT. I am trying to use mpl_token_metadata::instruction::update_metadata_accounts_v2 for this. Don't know the correct way to use it or if ...
Abdullah Qureshi's user avatar
2 votes
0 answers
138 views

Image not updating in phantom Wallet

I have updated NFT metadata which is successfully updated on explorer.solana.com and solscan.io and a new image is showing up. Phantom wallet is still showing the old image. What could be the issue?
Abdullah Qureshi's user avatar
3 votes
1 answer
46 views

Reveal URL on mint Solana Anchor Lang

I want to hide the minting URL and reveal it later once a user has minted NFTs. let path = "http://abc.com"; let new_uri = format!("http://abc.com/1.json"); invoke( ...
Abdullah Qureshi's user avatar
2 votes
1 answer
76 views

Stress Testing: 1000 Tranactions at the same Time

I need to know how many transactions the Solana blockchain can handle at a time. Currently, my app can handle around 10-20 transactions at once, but if I send around 50 transactions, let's say 50 NFT ...
Abdullah Qureshi's user avatar
7 votes
2 answers
356 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 ...
Abdullah Qureshi's user avatar
6 votes
1 answer
91 views

Add max Whitelist mint check per user

I need to put a check on Max whitelisted NFTs. Like each user can mint 10 NFTs. Any rust code snippet or reference would be helpful.
Abdullah Qureshi's user avatar
2 votes
1 answer
30 views

Keep record of NFTs minted counter by each user

I want to keep record of NFTs minted by each user separately. I am currently maintaining a counter to keep record of all NFTs minted. Account: #[account] pub struct NFTsMinted { //net NFTs minted ...
Abdullah Qureshi's user avatar
6 votes
2 answers
188 views

How to merge 2 or more Transactions and ask for 1 time payment only

Edited: I want to merge the following 2 Transactions. Not sure if it will be done from the front-end or in the rust program. Transaction 1 -> Mint NFT token: Transaction 2 -> Collect NFT in ...
Abdullah Qureshi's user avatar
1 vote
1 answer
120 views

How to bulk mint token in a particular wallet in sugar candy machine v2

If minting in the owner's account and then transferring it to the desired address then what is the most efficient way of doing that, so that I don't end up spending a fortune just on minting
Shishir Tiwari's user avatar
4 votes
1 answer
76 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 ...
Abdullah Qureshi's user avatar
1 vote
2 answers
139 views

What is the use case for `set_freeze`, `remove_freeze` and `thaw_nft` instructions in CandyMachine

I've seen these instructions in the source code, however, I couldn't find any documentation on them. What is the purpose of those 3 instructions and in which situations should I use them? EDIT: I've ...
RowanStone's user avatar
1 vote
2 answers
73 views

CandyMachine Metaplex in Javascript?

I'm creating an application to expose an NFT collection. I already started to make my application using a normal React APP. I made the entire site using .js and .jsx, but now the most important part ...
Bruno Raphael Rocha's user avatar
1 vote
1 answer
122 views

Deserializing Enum using borch_construct (Candy Machine Account Data)

While deserializing account data from: https://explorer.solana.com/address/DZWdnz5VXYxGrutAFCUHzy5JkGc3kY4aGGv8oeT3nR26/anchor-account I am running into issues with the Enum object in borsh_construct. ...
Jim Eagle's user avatar
2 votes
0 answers
61 views

Why don't the RPC subscription methods work when we use finalized commitment?

I'm trying to make a program that monitors candy machine v2 then getting nft informations using metaplex. Why is my program not returning anything when I specify "finalized" commitment? ...
Cosinus basic function's user avatar
1 vote
2 answers
36 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?
Tom DeVito's user avatar
5 votes
2 answers
143 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 ...
Lorenzo Vincenzi's user avatar
1 vote
0 answers
19 views

How do I get all Live Candy Machines after a certain date?

I want to extract candy machine IDs from a certain date to now and then display the Candy machine information by candy machine ID. curl http://api.mainnet-beta.solana.com -X POST -H "Content-Type:...
vm123's user avatar
  • 11
2 votes
0 answers
43 views

How can I get a hash list of all minted NFTs for a CMV2 using Python?

I am trying to fetch a hash list of all minted NFTs from a given Candy Machine V2 ID. Ideally I'd like a method that returns similarly to the Magic Eden mint list tool. My suspicion is that I could ...
ruegrugirugjr's user avatar
2 votes
4 answers
939 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 ...
Amanullah's user avatar
2 votes
2 answers
62 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 ...
technotechkid's user avatar
1 vote
1 answer
36 views

How to allocate more gumdrop whitelist tokens than the amount of nfts in candy machine?

I got this error when creating gumdrop using --claim-integration candy Error: Distributor is allocated more mints (3376) than the candy machine has remaining (1000) Is there any work around it / ...
Haziq Raz's user avatar
2 votes
1 answer
85 views

Nextjs Candymachine Error

I have tried to call getCandymachineState, but I received the error. Cannot read properties of null (reading 'state') Here is the code of the getCandymahchineState API export default async function ...
Aaron Pang's user avatar
4 votes
2 answers
112 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 ...
Federico García's user avatar