Questions tagged [mint]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
1 answer
80 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
5 votes
2 answers
1k 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
5 votes
1 answer
218 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
  • 940
5 votes
2 answers
784 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
4 votes
1 answer
107 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
4 votes
1 answer
737 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
104 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
  • 499
4 votes
2 answers
64 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
4 votes
1 answer
103 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
3 votes
1 answer
230 views

Are new SPL tokens typically transferred from a Mint's token account to a user's Associated Token Account?

I'm trying to mentally put together the relationship between the various types of accounts involved in SPL tokens according to the Solana Cookbook: The cookbook says: This mint account is later used ...
mikemaccana's user avatar
  • 1,805
3 votes
1 answer
67 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 ...
LAUR_NASA's user avatar
  • 173
3 votes
2 answers
391 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
3 votes
1 answer
614 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
3 votes
1 answer
82 views

Not Able to mint using Token generated through Solana Playground

I created one Token using Solana Playground following steps on this tutorial. I'm now trying to mint using this token in my terminal using solana-cli. I'm getting below error. Error: "Account ...
Giteshwar Mali's user avatar
2 votes
1 answer
137 views

Change existing token's decimal

Is there any way to change a token's decimals when it is already created?
pleasehelpme's user avatar
2 votes
4 answers
1k 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
270 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
2 votes
1 answer
95 views

What is the value of MINT_SIZE, the constant from the Solana spl-token package?

When creating a spl-token mint, we pass in the number for supply. What is the value of MINT_SIZE? Is there a way to create a spl-token mint with infinite supply? If not, What is the maximum number of ...
Russell Philips's user avatar
2 votes
2 answers
1k 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
2 votes
2 answers
250 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
2 votes
1 answer
99 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
2 votes
1 answer
87 views

Issue with mintTo function

I tried to run the script below but got this error and was wondering where I may have made a mistake? bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) The token was created,...
johnny's user avatar
  • 69
2 votes
1 answer
35 views

Mint Authority Being a Signer

I am getting error: Instruction does not support native tokens when trying to initialize a new SPL metadata via: // Invoke the create_metadata_account_v3 instruction on the token metadata program ...
AceGravity's user avatar
2 votes
2 answers
91 views

mint token when supply exceeds 2^64/10*decimals

how can I mint new token when my supply exceeds 2 ^^ 64 / 10 x decimals tokens? Or are there any methods to reduce decimals? Help me please
pleasehelpme's user avatar
2 votes
2 answers
408 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
  • 33
2 votes
2 answers
305 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
2 votes
1 answer
163 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
  • 722
2 votes
2 answers
101 views

createInitializeMintInstruction() ----> error: invalid account data for instruction using

I am trying to use the "createInitializeMintInstruction()" using JS to create a token. The problem is when executing, it throws an error. Concretely this one: Transaction simulation failed: ...
lauteriust3's user avatar
2 votes
4 answers
247 views

Failed Token Develop and Lose Money :)

Before I start, I would like to apologize for writing a long message. I am a novice software developer who is just starting to learn Solana. Therefore, I wrote the whole story from start to finish ...
TryingToBeSolDev's user avatar
2 votes
2 answers
134 views

Is it possible yet to use mint tokens supporting both transfer fees and confidential transfers?

I can see in the documentation that Token-2022's transfer fees and confidential transfers are supported (or intended to be supported) when used together. However, when I attempt to mint a token with ...
JTB's user avatar
  • 33
2 votes
1 answer
376 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
2 votes
1 answer
396 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,965
2 votes
1 answer
92 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
2 votes
1 answer
634 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
  • 75
2 votes
0 answers
169 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
2 votes
1 answer
228 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
0 answers
141 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
2 votes
1 answer
311 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
1 vote
2 answers
247 views

Mint Token as a PDA via SPL

I'm converting my custom SPL token anchor program from using mint token as a newly generated anchor keypair, to using a PDA instead. It seems that SPL can take either a keypair or PDA for the mint ...
AceGravity's user avatar
1 vote
1 answer
145 views

Get Solana SPL Address from base 58 string

Hi I have a base58 string for an SPL token address (called a mint in the Solana docs); This is how I generated this string: const mint = await createMint( connection, payer, ...
colinwink's user avatar
1 vote
1 answer
195 views

How do I prevent a user from transferring a token in their wallet originating from a token mint I own or have authority on?

Let us say a user has claimed a token reward or has received an airdrop from my token mint that I am the owner / have authority of. Can I freeze or prevent this user from transferring or selling the ...
DonnySolana's user avatar
1 vote
3 answers
50 views

NFT Smart Contract [closed]

I have created NFT tokens by using bellow command: spl-token create-token --decimals 0 ntwze65k6HMR4LiKqeyBPbQGSqT4H4cBVXJEkLxid1N.json spl-token create-account ...
Nomanul Haq's user avatar
1 vote
1 answer
358 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
1 vote
1 answer
56 views

Anchor: Initialize token mint with metadata and extension transfer fee

I would like to initialize in my Anchor program a new token to mint with extension transfer fee and metadata. It keeps return error InvalidAccountData when invoke initialize_transfer_fee_config, i ...
Jade's user avatar
  • 82
1 vote
1 answer
173 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,805
1 vote
2 answers
53 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
  • 425
1 vote
1 answer
199 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
1 vote
1 answer
65 views

Error minting token on Devnet

Noob here, in a bootcamp. Gettin stuck with this error. I have set configuration successfully to Devnet. But then things like requesting Airdrop from Devnet or spl-token create-token are giving me the ...
Lordshrrred's user avatar
1 vote
1 answer
17 views

Cnft collection token documentation

I am trying to mint cnfts one by one (no usermint on candy machine) using bublegum and umi and I want them to be part of a collection. There is documentation about creating tree and how to mint cnft ...
Bud Loaded Frogs's user avatar
1 vote
2 answers
237 views

How to recover SOL sent to a token mint address that I created?

I know it's a monkey brain mistake that I have sent some sol coins from phantom wallet to an SPL token address which I have created. I created this token via Fluxbeam v1. I have been searching online ...
Ididamistake's user avatar