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(&create_metadata_accounts_v2(...
View ArticleUpdate 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...
View ArticleSPL Token Image not displaying in Phantom or Solscan
My image is not appearing in Phantom or Solscan. Metadata looks correct, image is an arweave link that works when searching. Any ideas why the image would not be...
View ArticleHow do I lock liquidity for a token on Solana?
When I use Rugcheck.xyz to check my token, it says that I did not lock liquidity and that this is dangerous.Therefore, I want to lock liquidity for my token. How do I do this?
View ArticleRunning spl-token initialize-metadata getting error
Syntax:spl-token initialize-metadata Bk8e....xyzK "NAME of Token" "SYMBOL" "https://raw.githubusercontent.com/xxx/TOKEN.json" --url https://api.mainnet-beta.solana.comI've tried so many times with...
View ArticleNeed help in sending bundle using jito
I need new to this just trying to send a transaction using Jito bundle i fetched tip accounts and used one random and also using tip 0.005SOL and sending bundle but i get this response...
View ArticleExcess amount of SOL being expended from wallet when I swap with Raydium or...
This may be a problem that can occur with other Solana programs, but I digress. Whenever I attempt to swap with Raydium, it would appear as if I'm losing more SOL than I should. For example, I might...
View Articleerror[E0277]: can't compare `solana_program::pubkey::Pubkey` with...
Tackling the error below trying to compile my anchor programError: Function...
View ArticleHow to create, add and remove liquidity using @raydium-io/raydium-sdk-v2?
I’m currently working with @raydium-io/raydium-sdk-v2 and trying to figure out how to create, add, and remove liquidity on the Raydium platform. Could anyone provide a code example or a step-by-step...
View ArticleStrange error from adding account address validation
I am working on a program that invokes drift.It all works fine, just adding assertions now.I have changed this account:#[account(mut)]pub user_stats: AccountInfo<'info>,To this:#[account( mut,...
View ArticleSPL22 to SPL token migration
Good day everyone,We created a token on SPL22.Is there a way to migrate it to normal SPL ?
View Articlegetprogramaccounts with filter on symbol ? (token 2022)
I'm using token 2022 with metadata pointer extension, and the metadata are held in the mint account.I would like to fetch all mint addresses with a particular symbol, i know how to construct this kind...
View ArticleHow to enter associated token address in solana playground?
I was following a youtube tutorial to mint nft tokens on solana playground. I wanna add Associated token address. In this tutorial there was an option to generate this using the owner account and mint...
View Articlecan't compare `solana_program::pubkey::Pubkey` with...
I'm trying to run a CPI example of Raydium AMMhttps://github.com/raydium-io/raydium-cpi-example/blob/master/amm-cpi/All settings are the same as in GitHub repo.[dependencies]anchor-lang =...
View ArticleHow to add two Jupiter swap transactions
// First swap transaction (JUP to SOL) const quoteResponse1 = await ( await...
View ArticlegetOrCreateAssociatedTokenAccount fails all the time when Solana is under load
As part of the onboarding process for my project, I create wallets for users.These wallets are fully onboarded to my game and are prefunded with the games native token. Users literally click 1 button...
View Articlenot able to retrieve solflare wallet address
My code is running on local in py eni , I am trying to get solflare wallet address after connecting to it but it getting errorhere is the full code Connect Solana WalletConnect Your Solana Wallet...
View ArticleAnchor framework, validation failed
Writing the IDL fileWriting the .ts fileBuild successError: package section not providedWhen I tried to verify, anchor verify 9nvhTP4tjhR2qRt4QkPCcGhE8jtzRbbgRBggPrrNxhEH
View Articlecould not find `__client_accounts_contributor` in the crate root
Attempting to 'anchor build' a project and running into errors with the #[program] macro. Unsure exactly what could be causing these. Tried reading the compiler error index but it didnt seem to help in...
View ArticleSolana Crypto Retrieval
Recently I sent Solana to the following address:GJRs4FwHtemZ5ZE9x3FNvJ8TMwitKTh21yxdRPqn7npEI sent it from my Coinbase Wallet account, now it has come to my attention that crypto sent CAN NOT be...
View Article