How to view msg! logs
I have msg! calls throughout my program, and have sent a transaction to invoke the program. And now I am trying to view these msg!'s.What I have tried:Solana explorer doesn't seem to show it.solana...
View ArticleWhat Do I Put into a Quote Vault?
I have a platform asset, which I'm using as tying mechanic between a stack of my apps, for login and rewards etc. The problem I am having is working out what to put into the OpenBook Vaults. For the...
View Articlehow to generate alignment padding in idl file while running anchor build
zero_copy and repr(c) are used before state struct to handle the over-stack problem.While generating the idl json file by anchor build, no padding field is generated following #[repr(C)] alignment...
View ArticleIssue Verifying Off-chain Signatures with ed25519_dalek and salty Libraries...
I'm facing an issue when trying to verify off-chain signatures in my Solana program using the ed25519_dalek library. The same problem occurs with the salty library when attempting to convert a...
View Articleweb3.js - Solana tx fails silently
I am using web3.js to send SOL txns, using the sendTransaction method.Sometimes, when I send a txn, the method will return me a transaction address. But when I look it up in solscan.io (even after 5...
View ArticleHow to charge transaction fee in my token insteed of SOL if any one tranfer...
I'm seeking for help any body can help regarding spl, token, I'm working on app it has in app wallet, if some did dum task I'll provide my token as mining reward, so what I need that, when they...
View ArticleError When Creating SPL Token Account: Incorrect Program ID for Instruction...
I'm new to Solana development and have encountered an issue while trying to create an SPL token account on the devnet using the SPL Token CLI.After creating a new SPL token, I attempted to create a...
View ArticleLimitations of getSignatureForAddress
The issue is that when I get the create pool txn, there is no way getting the signatures for the token address going forward in time.getSignaturesForAddress only goes back in time using the before...
View ArticleHOW TO FIX THIS False error report “Transaction simulation failed:...
I now have a solana account and want to transfer all the SOL in it. At first I found that the OKX wallet could not be transferred because there were SPL ACCOUNT and CNFTS in my wallet, so I transferred...
View Articlehow to get USDC off optimism network onto eth network in phantom wallet
Ive swapped eth for USDC in phantom wallet and its showing on ether scan that its on the optimism network and i don't have the coin in my wallet i was origionally trying to buy leveraged tokens on...
View ArticleQuestion Description: Regarding data retrieval and operations on the Solana...
Additional Note:I am willing to provide compensation for detailed technical insights or script implementations. Preferably, I would like practical code references or specific solutions.How to retrieve...
View ArticleError: failed to get recent blockhash: TypeError: fetch failed in Anchor test
I've made simple test script for Anchor running on Devnet.But it's giving error below:I found some saying need to change rpc.But in my end, "connection.getLatestBlockhash()" works fine.So I think my...
View ArticleInstructionError(3 , IncorrectProgramId): swap transactions weird error
I have been encountering this error when trying to create swap transactions on pump.fun, anyone knows how to fix or why its happening? And the strangest thing is that, strangely, sometimes it happens...
View ArticleFormatting seed for PDA
#[derive(Accounts)]#[instruction(message: String)]pub struct CreateImmortaliseMeAccount<'info> { // Account for creating an ImmortaliseMe account #[account( init, space= DISCRIMINATOR +...
View ArticleWhy won't by WSL generate a scaffold when I prompted ```npx...
/home/ekomblockchain/.npm/_npx/07c7a862db1a1c86/node_modules/@clack/prompts/dist/index.cjs:6;case"submit":return${n}${color.gray(S_BAR)}...
View ArticleHow can I close a token account AND transfer all my sol to another wallet...
It doesn’t even need to be an automatic process, I just want a way for them to be in the same transaction.Eg.:...
View ArticleCan I burn SPL Tokens that are sent from a user to a Solana Program?
I am trying to write a simple anchor program that will burn the SPL tokens that the user sends to my anchor program. I followed the guide below on QuickNode to build a new program that allows...
View ArticleHow to get all tokens in my account with python?
I am using solana, python. I have tried to get all tokens in my own account with get_token_accounts_by_owner_json_parsed (program_id=TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA) in python. the result...
View ArticleHow to construct input of rust program that is fed into solana rbpf?
Get hello.oanchor init helloanchor buildlib.rsuse anchor_lang::prelude::*;declare_id!("3bKgMxR7MwXLzGDfdsW8HsNYSSxRejf6uUF69Mmupfx7");#[program]pub mod hello { use super::*; pub fn initialize(ctx:...
View ArticlePassing PDA seeds and bump to sol_invoke_signed_c syscall in...
Before: There seemed to be a lack of solana nostd entrypoint documentation, I couldn't find any good resources.I made solana program using solana_nostd_entrypoint.I want to create PDA account using...
View Article