Can we add a total cap to a spl token created with solana CLI?
I am creating a spl token using solana CLI as per the following documentation, https://solana.com/developers/guides/getstarted/how-to-create-a-token.this already include the burn functionality by...
View Article`createWithSeed` vs using a PDA with f`indProgramAddress`
In what situations would I want to use createWithSeed function vs deriving a PDA address.Why do the two generate different addressesconst programId = new...
View ArticleMust the nested-instructions's accounts be passed in, as well?
Does the accounts field of a program's Instruction include just the accounts the instruction needs/touches directly - or those that are required by the nested instructions called by it, as well?It...
View ArticleDetermining Intermediate Swap Outputs in Multi-DEX Solana Transactions
When a user creates a transaction with multiple swap instructions across different DeFi protocols, how can they determine the output amount from the first swap if they don't explicitly specify it?
View ArticleHow to add metadata for Token program
Maybe I need some guidance to really understand the program, I hope you will help. Thank you very muchcurrently i have token program and i need to add metadata , can you show me how to do ituse...
View ArticleAccount::try_from is not working because of the lifetime issue
I am trying to create an instruction where I decide which Account struct should be used based on an argument. I am accepting UncheckedAccount and trying to convert it to Account with PriceUpdateV2...
View ArticleI want adapter to not automatically detect installed wallet and show only...
I have installed both of Phantom and Solflare.If I use @solana/wallet-adapter-react to select/connect wallet, adapter automatically detects Phantom and Solflare both.But I want to hide Solflare, and...
View Articlefacing a "Create Account: account Address already in use" when running...
Hi I am facing a "Create Account: account Address { address: xxx, base: None } already in use" when running TokenSwap.createTokenSwap method which is associated to package @solana/spl-token-swap.The...
View ArticleHow can I get the addresses of the owners of a perticular Nft using metaplex
What type of nft ( master, printed , normal edition ) should I need to share with user so that, later I can get the details who are the owners of that perticular Nft or whether user address contains...
View ArticleI need to understand the escrow flow in Rust on Solana
I want to create an escrow program in Rust on Solana with the following requirements: Anyone can send an amount to the escrow, a lottery function runs on the backend to select a winner, and the NFT is...
View ArticleUSDT received from Binance, but impossible to send or swap them
I made a withdrawal of USDT from binance to my personal wallet which I use daily for defi etc.Together with this "new" USDT received from Binance, I have like 16 usdt on my wallet, and these can be...
View ArticleSetup Metaplex's Digital Asset RPC API for existing solana rpc node
I already have a solana rpc node running, and on top of that I want to provide methods present in this https://github.com/metaplex-foundation/digital-asset-standard-api/tree/main, can someone suggest...
View Articlesolana-test-validator: Unable to detect Rocks columns error
Super new to programming with Solana, please pardon my noob-ness.I'm trying to run solana-test-validator --log , but I keep getting this error:...[2024-09-06T22:18:06.427547000Z INFO...
View ArticleError (-32002): Error processing Instruction 2: Provided owner is not allowed
Can anyone tell me what the error might be?{accounts: null, err: {InstructionError: [2, IllegalOwner]}, innerInstructions: null, logs: [Program ComputeBudget111111111111111111111111111111 invoke [1],...
View ArticleData feed for Solana Indexer
I am thinking of building a custom transaction indexer to extract out some information from transaction on chain. Which are best source to feed data to indexer. Any good source which provides...
View ArticleSolana parsing created token from a contract
Why do I don't get all the new token created from the contract here :from solana.rpc.async_api import AsyncClientfrom solders.pubkey import Pubkeyimport time# Adresse du contratCONTRACT_ADDRESS =...
View ArticleHow to combine Anchor verifiable builds with OtterSec Solana verify CLI
I’ve been using anchor build --verifiable to build and deploy Solana on-chain programs, as explained in the Anchor documentation.Recently, it seems that using Solana Verify CLI from OtterSec...
View ArticlegetFeeForMessage returns null value
I am following docs and making the following solana rpc call to devnet solana(https://api.devnet.solana.com) but I am getting null value in responsethis is my...
View ArticleWalletSendTransactionError: Unexpected error
WalletSendTransactionError: Unexpected error faced while sending the transactionawait sendTransaction(transactionSignature, connection);can anyone help me to resolve the same?
View ArticleHow to find the TPU forwards port of a validator node?
How do I determine the TPU forwarding port of a validator? Is there like a predetermined offset for this? Thanks!
View Article