Top new questions this week:
|
I am trying to update value of string. I can update if its type is u8, u32, u64, or i64 but cannot update if it’s a string type. Any guesses what am I doing wrong? Code snippet: Program Function …
|
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 …
|
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<…
|
Since Solana programs can be updated without changing their program Ids, as mentioned in the below link: docs.solana.com/developing/on-chain-programs/deploying End-user still remains on the …
|
I am facing an error on adding line Vec<String>, type or String type. Error: #[derive(Accounts)] pub struct ModifyLedger<‘info> { #[account(mut)] pub ledger_account: Account<‘…
|
I have been trying to find projects bringing EVM compatibility to Solana, and so far have only found Neon Labs doing so. My question is if there are any other projects trying to do the same? Or is …
|
Trying to compile instructions into a versioned transaction and getting a rangeError [encoding overruns Uint8Array] for more than 6 transactions. Does anyone know if there’s a limit to the buffer …
|
Greatest hits from previous weeks:
|
This is more of a “teach me how to fish” that may be useful for others too. I have written a rather complex Anchor program. When I run the integration test for it, it fails right away with …
|
I want to use zero copy in an anchor program, but I don’t have a clear path on how can I do that. Is there any guide or example program that does this?
|
Currently I am writing smart contract code in anchor. When i declare a pub struct in smart contract I can access it in type script easily using IdlType example: #[derive(AnchorSerialize, …
|
I’m trying to write a code that transfers SOL from a vault(A PDA) to another address and my code looks like this pub fn withdraw(ctx: Context<Withdraw>,amount:u64) -> Result<()> { …
|
I am trying to use the solana json rpc to request the data from blocks using get_block. I’ve been using this a bunch just fine but have started to get an error that I don’t understand, and can’t find …
|
How do different components of a transaction contribute to the cost of a transaction on Solana?
|
I am trying to run some tests in my Solana Anchor project but I get an error saying that the declared program id does not match the actual program id. Error: AnchorError occurred. Error Code: …
|
Can you answer these questions?
|
Solana Newbie here. I am trying to setup an RPC node for extracting data from the Solana chain. However I am having trouble launching the Solana Validator. I feel like I must be missing a dependency …
|
I have this NFT’s mint address on devnet where no transaction history can be found: E4xbqXvy1tHjfBwJpR5WT4h3xMXgmb5UX7wkoChUPB4g I’m confused how this is happened, because I also have the transaction …
|
When customers go to my NFT project to claim/buy an NFT, wallet shows “Receive Unknown” (image from phantom extension attached). What should I do to have the name of the NFT pop up on …
|