Skip to main content

Questions tagged [candy-machine-v2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

NFT mint transaction insturaction

is there any way to just get TransactionInsturaction for Mint? async function mintNft() { const candyMachine = await METAPLEX .candyMachines() .findByAddress({ address: new ...
Berkay Kaplan's user avatar
0 votes
1 answer
25 views

NFT minting cost

I am a bit new to Solana, I was testing with metaplex candymachine. I tried to mint a collection of 3 NFTs on devenet. those are the final cost that I calculated. Are those considered right? Will the ...
M-Rb3's user avatar
  • 3
0 votes
0 answers
14 views

How to categorise the assets for Candymachine?

I am making an NFT collection using Solana Metaplex candy machine. Here, I want to release the collection in 8 categories . So when I release the collection, the user are eligible to mint throughout ...
Hemang Joshi's user avatar
1 vote
1 answer
281 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
2 votes
1 answer
154 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
108 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
185 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
196 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
4 votes
1 answer
55 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
84 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
515 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
133 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
33 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
310 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
136 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
86 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
151 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
78 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
182 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
69 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
56 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
208 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
20 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
58 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
2k 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
124 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
50 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
98 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
137 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