Quantcast
Channel: Recent Questions - Solana Stack Exchange
Browsing all 8063 articles
Browse latest View live

Error when running test after compiling Solana program

Hey SolStackEx Community,I was wondering if anyone could give me insight into the follow failure during a test of the Solana program.[2023-12-09T16:44:49.378641832Z ERROR solana_core::validator]...

View Article


SPL Token 2022 initialize_group - "Invalid Instruction"

** The code is functional. The issue was with the test framework. See solution **.I'm trying to create a group mint with token-2022.I've followed the steps...

View Article


Need help with raydium sdk

I am building a swap like app that uses raydium but I'm facing alot of problems.I copied someone's code and tried to change it a little bit but something is quite off.Whenever I try to sell the whole...

View Article

Rate of failure of broadcasting is getting increased

Rate of failure of broadcasting transaction is getting increased in few days.Is there any options to solve this problem?I set my priority fee price as 6M. CU is enough for the transaction.When network...

View Article

Can someone please explain to me how SOL contract addresses are created? Is...

……………………………………………I encountered a SOL address with a word literally spelled in the beginning characters and I want to know if its possible to manipulate this

View Article


Error occurred: Error: !signature

I'm trying to create a new SPL token using @solana/web3.js and @solana/spl-token at the end of the process I got this error Error occurred: Error: !signature. Even though I don't know if the weather...

View Article

solana spl token revoke authority of accountowner

BlockquoteI would like to revoke all Wormhole token delegation permissions. I configured ChatGP and Python code as shown below, but it does not run. Transactions with existing permissions are as...

View Article

Solana CLI Transaction Timeout Error

I have been trying to learn the ins and out of the Solana CLI interface to better understand the chain but I keep running into a wall when I attempt to send SOL using CLI. I created my keypair and...

View Article


How can I decode the data for an event emitted by an inner instruction?

For this transaction for example - how can I decode the data in the buy function? I have the IDL. I've tried creating a struct and converting the data to an Uint8 Array and then decoding but I'm...

View Article


Pump fun bonding curve real time data updates

I'm writing a script using Js to buy tokens on pump fun. My issue is I need an API/endpoint that can update the market cap of each token that are still on the bonding curve on pump.fun. I can only get...

View Article

My program event listeners sometimes miss Anchor events?

My backend listens to events emitted from my Solana program to proccess certain events initiated by my client client-side.Most of the time the events are received and handled correctly, but sometimes...

View Article

Fuzz testing with system program

When fuzz testing outside of bpf-land (i.e. the target os is not solana), cpis will fall back to crate-level program stubs, and we can invoke spl token instructions with the handy processor:pub struct...

View Article

Issue with spl-associated-token-account Version Conflict in anchor-spl v0.30.1

I'm working on a Solana program using Anchor, and I’ve encountered a version conflict when running cargo update with anchor-spl v0.30.1. The issue arises from the dependency on...

View Article


Retrieve the upgrade authority of current program

Given the entrypoint of a vanilla solana program:pub(crate) fn processor( program_id: &Pubkey, accounts: &[AccountInfo], instruction_data: &[u8],) -> ProgramResult {// Get the upgrade...

View Article

What I am missing after creating private rpc Solana node

I create rpc Solana on dedicate server from edgevana. I use my rpc endpoints in trade bot when I use heluis https and wss the bot run and start , when I use my https and wss the bot exit and get error...

View Article


Adding 2 signers for TS Test for Anchor project

I am trying to create a simple swap contract.The part of the swap function is like this: // Transfer tokens from user to pool let cpi_accounts_in = token::Transfer { from:...

View Article

How to create liquidity lock on solana meme coin which is on raydium...

I am new to solana development so need the help on locking the liquidity on solana meme coin project. We have created a solana meme coin and added the liquidity to it on raydium. Liquidity on this meme...

View Article


Anchor: How to validate Token Program in Account structs?

In my account struct:#[derive(Accounts)]pub struct WithdrawToken<'info> { #[account(mut, token::mint = mint, token::authority = signer, token::token_program = token_program)] pub to_ata:...

View Article

How to send VersionedTransaction on solana using solana/wallet-adapter-react...

Solana Community. I'm facing this while trying to sign and send Versioned transaction using @solana/wallet-adapter-react. Could really use some help in finding solution to problem. Thanks!Docs says...

View Article

Cannot run generateKeyPair from @solana/web3.js@rc

I am trying to run the command const keyPair: CryptoKeyPair = await generateKeyPair() and I get the following error:throw new...

View Article
Browsing all 8063 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>