Questions tagged [mint]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Collection is not showing in solscan (minting nft in solana with collection using metaplex)

I have minted a collection and nfts using some codes, and got to same result than those other stackoverflow questions. Nfts are ok, collection is there, but solscan is not showing it in the NFT sheet. ...
Harlock's user avatar
  • 13
1 vote
2 answers
46 views

Need to Mint 1 NFT using Js and new Metaplex createNft: Fails ...Attempt to debit an account but found no record of a prior credit

I am trying to create one Js script to mint 1 NFT to test new Metaplex function createNft on: https://developers.metaplex.com/token-metadata/getting-started/js I am testing on Devnet. I am providing a ...
Harlock's user avatar
  • 13
2 votes
2 answers
37 views

Quick Node RPC For Minting

Can we use quicknode rpc to run a metaplex candymachine? i've used ankr before but it couldnt even be used
Mahendra F.A's user avatar
1 vote
1 answer
71 views

How to mint nft using js

When I use umi, it return error related to signerIdentity method. I did research but there was no solution or document about it. When I use js sdk, it return this error: This is the code: This is ...
marethyu's user avatar
  • 193
2 votes
2 answers
225 views

Attach metadata to token with metaplex

I am trying to attach metadata uploaded to arweave to a token. I am using createCreateMetadataAccountV3Instruction from @metaplex-foundation/mpl-token-metadata, but I am getting an error. This is the ...
dev's user avatar
  • 21
0 votes
1 answer
35 views

TokenAccountNotFoundError with getOrCreateAssociatedTokenAccount Typescript

I am trying to simulate minting 100 tokens to a wallet address and when I start the program, I get thrown this error: TokenAccountNotFoundError This is the typescript code for creating the token ...
kattyd's user avatar
  • 1
0 votes
0 answers
59 views

How to batch mint in Candy Machine V3?

**how to mint X NFTs in candy machine at once? here is the answer.** const txs = []; //you have to use for loop to push mint transactions to txs array. now I've used just 2. txs.push( ...
Fable Frog's user avatar
1 vote
1 answer
45 views

How to update NFT metadata inserted to candy machine?

I've created candy machine and already inserted 100 items. now I need to update metadata of 20 items. I tried with metaplex.nfts().update() but it requires transaction dialog. what I want to know is ...
Fable Frog's user avatar
0 votes
0 answers
10 views

How can I set the minting price of candy machine in javascript?

I've created candy machine. but I'm not sure how can I set the minting price of this candy machine. also I don't know where the minting sol is charged in my candy machine. it's creator wallet? anyone ...
Fable Frog's user avatar
1 vote
1 answer
80 views

ProgramNotRecognizedError: The provided program name [mplCandyGuard] is not recognized in the [devnet] cluster

I am trying to mint NFTs from a candy machine v3 using the umi library as shown in this https://docs.metaplex.com/programs/candy-machine/minting . I am using the following code - import React from '...
Joy Mukherjee's user avatar
2 votes
0 answers
81 views

Trying to get latest sugar 2.1.1 version to mint with candy machine ui v3

The candy machine was created using token standard : pnft and guard groups, when minting using the latest sugar alpha version , I can mint from a ui like https://github.com/Solana-Studio/Candy-Machine-...
Andrae Browne's user avatar
0 votes
1 answer
110 views

Error: Signature verification failed when trying to mint tokens

I get the error when trying to mint tokens on web3 with mintToChecked function. Here's the code: async function mintToken( connection: web3.Connection, payer: web3.Keypair, userAddress: ...
Denim Basumatary's user avatar
2 votes
1 answer
130 views

mintV2 with umi Error: Method not Implemented

I'm trying to mint with umi's mintV2 method on devnet for a candy machine that does not have pNFTs set up. The Metaplex doc says the new mintV2 instructions can be used to mint regular NFTs but I'm ...
programmer_b's user avatar
2 votes
1 answer
52 views

Is there any limitations on minting token? I can't mint the token that I made anymore

I have made a token on Solana using dexlab before and the token supply was 100T and I have minted again more token and now the supply are 184T token, I wanna make the total supply like 10 quadrillion ...
Dogen's user avatar
  • 21
1 vote
0 answers
59 views

WalletSendTransactionError: unknown signer: <pubkey from phantom wallet>

How do I fix this error/what might be causing it? I'm trying to have a user use their wallet to sign a partial transaction that I built on my backend. WalletSendTransactionError: unknown signer: <...
xkycc's user avatar
  • 99
1 vote
1 answer
77 views

Metaplex `Nft` object has a 'mint address' and a 'mint account'. What is the difference?

I understand what a mint account is. For example, I know that USDC has a single mint address on mainnet. I know what associated token accounts are. For example, I know that my personal store of USDC ...
mikemaccana's user avatar
  • 1,225
0 votes
0 answers
68 views

How do I get a user to pay for an NFT mint using Candy Machine?

I am trying to create an API call for my backend that would allow a user to mint an NFT through my frontend. How would I go about doing this? Specifically, how would I make the user pay seeing as the ...
xkycc's user avatar
  • 99
2 votes
2 answers
202 views

Error: Signature verification failed while mint NFT

I created a candymachine v3 with sugar and I am trying to mit using the following code: const { nft } = await metaplex.candyMachines().mint({ candyMachine, collectionUpdateAuthority: candyMachine....
Angelo's user avatar
  • 21
0 votes
1 answer
16 views

GetMultiple for Mints?

Let's say we have an array of Pubkeys: let arr: Pubkey[] = [whatever] We have connection.getMultipleAccountsInfo(arr) to get many AccountInfo in one RPC call. We have getMint() from the spl-token ...
Whiteseal's user avatar
  • 2,192
2 votes
1 answer
217 views

How to initialize a PDA mint in anchor

I'm looking to create a mint as PDA in anchor. In this case, the mint will be able to mint tokens.
vicyyn's user avatar
  • 3,715
5 votes
2 answers
260 views

Are mint address and token address identical?

Let's take USDT token https://solscan.io/token/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB I've fetched some of my transaction via Solana API method gettransactions. In those where USDT is transfered,...
Camila326's user avatar
  • 149
3 votes
1 answer
45 views

Where does a Account of a TokenMint store the maximum capacity it has at the moment?

I just started learning Solana, and I have a question that is confusing me. A tokenMint are account that holds specific information about a token. But createMint only requires the mint freeze ...
Mr.H's user avatar
  • 153
4 votes
1 answer
87 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
0 answers
65 views

How to mint an spl token in a Rust script?

I've been learning Rust and piecing together some code that will mint 1 spl-token. My script compiles, creates an account, initializes a mint, creates the associated token account, and mints 1 token ...
Brian's user avatar
  • 21
1 vote
1 answer
218 views

Metaplex Candy Machine Mint - Error Code: NotFullyLoaded. Error Number: 6020. Error Message: Not all config lines were added to the candy machine

I got an error when minting on candy machine on metaplex js sdk. here is my setup: const u1 = Keypair.generate() // create collection const { nft: collection } = await metaplex ....
Alfian Dwi Nugraha's user avatar
3 votes
2 answers
187 views

How to create a mint account on anchor test?

It would be extremely useful if I could create a mint account from a JSON file to test my anchor program. I have this in my Anchor.toml to add the account when I run anchor test [[test.validator....
rudy rhatal's user avatar
4 votes
1 answer
85 views

How Candy Machine data is stored?

I'm trying to understand how CM works in theory. As much as I understand, smart contracts can't make internet calls so we have to store data in blockchain in order to access it. Therefore I am ...
curiosity's user avatar
  • 479
0 votes
1 answer
26 views

How to check for mint supply on chain?

folks, how do I check for the supply of a mint account on-chain? I have no idea on how to do this. I've tried using: let mint = Mint::unpack_unchecked(accounts.mint.data).unwrap(); Then I get this ...
Dinaiscoding's user avatar
1 vote
1 answer
91 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
1 vote
1 answer
208 views

Convert from Devnet to Mainnet-beta with Metaplex and Sugar

This aligns with Solana but also a reference to Metaplex. Hoping someone can answer as the information found online is slim to none. I have a project ready to go. Using Metaplex w/ Solana CLI. It's ...
jdubz's user avatar
  • 11
4 votes
2 answers
51 views

Charge SOL Fee Before Minting NFT

I want user to pay some fixed SOL fee per NFT before minting. Any code snippet or reference will be helpful. I am using the following NFT minting code. pub fn mint_nft( ctx: Context<...
Abdullah Qureshi's user avatar
2 votes
1 answer
97 views

solana token program 0xc Invalid Instruction

I have recently begun getting the below error when running the createMint instruction from @solana/spl-token. To my knowledge, I have not changed any code or dependencies that would affect this. ...
austinmilt's user avatar
2 votes
2 answers
88 views

Can a mint's supply or decimals ever change?

I am building a data ingestion pipeline for solana blockchain data, and trying to determine whether it is safe for my processing pipeline to classify a given mint as an NFT based on whether the supply ...
Stephen Hawkins's user avatar
3 votes
1 answer
159 views

How to get Mint Address of of SPL token using associated token account?

I want to know if there is any way I can find out mint-address of spl-token if I using associated token-account of any one of the holders Something like this: const mintAddress = getMintAddress(...
Mahesh Ghamaand's user avatar
4 votes
1 answer
378 views

Can a PDA be the owner of an associated token account?

SPL.createAssociatedTokenAccount(connection, wallet, mint, project, {skipPreflight: true}, undefined, SPL.ASSOCIATED_TOKEN_PROGRAM_ID).then((projectTokenAccount) => { const mintIx = SPL....
user2421's user avatar
4 votes
1 answer
89 views

After Minting X amount of NFTs change Price

I am very new to Solana. I have a client's rust Program, it mint NFTs and allow admin who deployed the Solana Program to change the price. I have to add functionality to change the Sol price once X ...
Abdullah Qureshi's user avatar
2 votes
1 answer
60 views

Set and transfer royalties for a NFT

How to set royalty while minting a NFT. If I set creators in metadata how can I transfer royalties when someone buys this NFT? This is my Minting code: pub fn mint_nft( ctx: Context<MintNFT>,...
Lobo1897's user avatar
  • 153
1 vote
2 answers
44 views

spl-token CLI unexpected behaviour

I'm writing a bash script to do some creating of mints, associated token accounts and minting. What I'm trying to do is, create a mint with a mint_authority A keypair, and then create a associated ...
sayantank's user avatar
  • 415
5 votes
2 answers
387 views

Is it possible to close an SPL token Mint account?

Currently, we have code that could end up generating a lot of Mints in PDAs. We want users to be able to close these out as they're not neccessarily meant to stick around forever, but is that even ...
nathanleclaire's user avatar
2 votes
1 answer
55 views

What are the potential pitfalls of making the mint authority and freeze authority the same as the mint address?

For the TOKEN_2022_PROGRAM_ID spl-token program, it seems like it would be a best practice to make the mint authority and freeze authority different from the mint address, perhaps best to make them ...
OCDev's user avatar
  • 672
1 vote
1 answer
43 views

How to award tokens to users staking NFTs?

How would you create a token without any value and then mint them to the user who staked the NFT when they want to unstake? Do they pay the transaction fee and how much would it cost to mint a single ...
george's user avatar
  • 31
2 votes
1 answer
94 views

How to get all SPL token mints of a wallet address?

Using getTokenAccountsByOwner we can get all token accounts and using getTokenAccountBalanace we can use the token account to get it's balance. However I was wondering what would be the most efficient ...
Gmer's user avatar
  • 65
2 votes
1 answer
52 views

Cloning Existing Mints

I am developing a program that takes an existing mint as payment for services, is it possible to not only clone this Mint but then mint the tokens to accounts in my localnet testing? Example: Clone $...
Jack's user avatar
  • 91
0 votes
2 answers
39 views

Get all Mint Wallets from a Creator Address

Can anyone help me with a snippet that delivers all wallets that actually minted (not holding) from a certain creator id? There's a Transfer Type "Mint" that I can see on Solscan but I'm ...
fa8ster's user avatar
6 votes
1 answer
59 views

createMinToInstruction authorized by PDA, works in LocalNet, but gives "Account not associated with this Mint" on DevNet

I create an automated deployment script that will mint 2 million SPL tokens to an address, the mint is owned by the program PDA as shown in Solana explorer: Bellow is the last step in the deployment ...
Ngwin's user avatar
  • 71
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?
pan's user avatar
  • 11
0 votes
2 answers
55 views

How to mint an existing spl token with React?

I'm building a platform where users play games and receive tokens. Once user have some tokens I'd like to have a "claim" button to transfer (or should I say mint?) these tokens to user's ...
Zjeed's user avatar
  • 53
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 ...
Amanullah's user avatar
5 votes
1 answer
99 views

What is the recommended way to provision an instance of solana-test-validator with a set of accounts and mints?

I'm curious what the recommended way is to provision an instance of solana-test-validator with a 'known state', consisting of a few accounts and mints. We use this 'known state' in our local ...
beeman's user avatar
  • 325
0 votes
3 answers
75 views

Is there a way to burn a specific SPL Token quantity within a wallet while simultaneously minting a different SPL Token quantity within that wallet?

I read through the documentation in the SPL Token program and I am not clearly seeing if there is a way to have a single transaction perform a simultaneous burn and mint operation for various tokens ...
OCDev's user avatar
  • 672