Error: memory allocation failed, out of memory [CPI vs invoke_signed]
When I am creating CPI using the anchor CPI feature, I do not encounter a memory allocation failure. However, when using program::invoke_signed, I do encounter this issue. let mut ireceive_ctx =...
View ArticleIs there anyway to decode program account change that I don’t know the struct?
I’m trying to decode update that I got from the call of “connection.onProgramAcccountChange” but I don’t know the struct of possible outcome, is there anyway to get the struct or decode it somehow...
View ArticleFacing issue with account creation with bubblegum, Error: Transaction failed...
I am trying to create account using below method of bubblegum but getting strange error({"err":{"InstructionError":[0,{"Custom":1}]}}) as described here...
View Articlein tweetnacl-rust Is there a way to Verify(detached_verify) signature on...
i saw TweetNacl-js library in Solana-Coookbook and if i want to sign signature in client side and sign the transaction and send it to solana smart contract.Is there a way?if i consider to use ED25519...
View ArticleSplToken createMint Cannot read properties of undefined (reading 'createMint')
const mint = await splToken.createMint( connection, mintAuthority mintAuthority.publicKey, null, 9, null, {}, splToken.TOKEN_2022_PROGRAM_ID, );It is same as the splToken libexport async function...
View ArticleAnchor CI/CD: Issues with Program Upgrade and Keypair Management
I've been struggling to understand some things related to Anchor Programs and their Keypairs, and I couldn't find answers to some dilemmas. I'm sorry if they have been discussed already and I searched...
View ArticleTypeScript error in ResolvedAccounts for Anchor program
So I've written a small program that builds and deploys correctly. The initialize function also works.But now I'm trying to create a Lottery, and TypeScript keeps repeating type error; the error...
View ArticleSOS: how to reSync my wSol account to my sol account
I was trying to automate the wrapping and unwrapping of my sol. When I did that I successfully executed the swap but my wSol account is no longer linked to my sol Account. How do I fix this?
View ArticleWhere can I deploy a Program MVP without having to pay?
We created a project to be deployed but we are stuck with deploying it to the mainnet, like we are unable to fund our wallets with sol and if we want to buy we have to complete EDD, like wth I don't...
View ArticleStreaming pending transactions
How can you stream pending transactions for a specific mint adress?I want to monitor pending transactions with datas like adress, amount, confirmations. etc . In python or js .I imported solders for py...
View ArticleHow to derive the pool address on Raydium from two tokens (one being WSOL)?
I am coding in Python and I need to get derive the pool address of a token without using jupiter api. Any help is appreciated.
View ArticleEmergency withdraw feature for system program
This isnt so much a question as it is a feature request, but currently with the solana program i can create a program that writes a bit of data to your account and claims ownership, if you sign this...
View ArticleHow to change wallet-adapter-react-ui WalletBultiButton styling
This is how the current multi-button looks like on my pagehowever I want to override not just the styling, but also change the text and or the make the button an image. Something like this:
View ArticleError Message: You cannot/should not initialize the payer account as a...
I have a program and when I run the tests using anchor test I keep getting the error that I cannot and shouldn't initialize the payer account as the program account.Here is the rust code:use...
View ArticleAccount change listener is not working for phantom wallet
I am using this code given below in my react application to listen an account change event but facing issue as no response or error i am getting on changing account form phantom wallet .i have followed...
View ArticleIssue with .env file
I'm just beginning to learn and I'm using the SolDev bootcamp however, I've found an issue where I get this error message,PS C:\Users\Student\Documents\Solana_Web3\generate-keypair> npx esrun...
View ArticleSet Mutable Metadata to False on SPL Token
GM guysI hope you can help me.I'm going crazy trying to find a way to delete the "Mutable metadata" entry from my token (attached image).Resources on the internet are limited at the moment.I can use...
View ArticleI get "yarn: error: no such option: -p" when try run tests
When I attempt to run anchor tests through anchor test I get the following error:warning: `hello` (lib) generated 1 warning (run `cargo fix --lib -p hello` to apply 1 suggestion) Finished release...
View ArticleIntroduction to solana-program
Please I'm new to this. I need someone to explain how this solana works. I've tried creating a solana stake exchange account but it doesn't seem to work
View ArticleHow to get lp pair key from mint address of a raydium token?
I want to get a LP key pair(WSOL-TOKEN). For example in $WIF, the mint addres is EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm, but I want to get EP2ib6dYdEeqD8MfE2ezHCxX3kP3K2eLKkirfPm5eyMx.I'm using...
View Article