Questions tagged [solana-program]
Use this tag for programs that run on the Solana blockchain.
2,014 questions
1 vote
1 answer
32 views
`InvalidAuthority` error when initializing computation definition on Arcium localnet
I'm trying to initialize an arcium computation definition but keep getting InvalidAuthority error: Error: AnchorError thrown in programs/arcium/src/instructions/computation_definition.rs:76. Error ...
0 votes
0 answers
28 views
Question about Alpenglow consensus
Query: Current assumptions just focus on byzantine nodes dropping the messages. Can we work on checking the lemma under realistic conditions (forging signatures and injecting malicious data), talking ...
4 votes
1 answer
54 views
How does anchor seemingly allow larger than 4096 byte stack frames?
As we know, solana allows for 4096 byte large stack frames, so if we write a program like the below pinocchio program we logically get Access violation in stack frame 0 at address 0x1fffffffc, since ...
2 votes
1 answer
107 views
Buy instructions for Pumpfun
I want to create a function in Rust to buy a token on Pumpfun with a X amount of SOL. I struggled a bit with the offsets and the account order (I fetch it from https://github.com/pump-fun/pump-public-...
1 vote
1 answer
31 views
IDL generation missing PDA seeds constraint for some accounts with init attribute
Desc When an account uses both init and seeds constraints in Anchor, the generated IDL omits the pda field that should describe the seed derivation. This makes it impossible for client developers to ...
1 vote
0 answers
15 views
Pump.fun Bonding Curve: 165x Discrepancy Between Calculated Spot Price and Market Price
We calculate bonding curve spot price using virtual reserves: price = (virtualSol / 1e9) / (virtualToken / 1e6) Observed discrepancy: Calculated spot price from virtual reserves: 3.4056e-08 SOL/token ...
0 votes
1 answer
26 views
Extract price from account notifications
I am struggling to find correct offset of (tokens reserve) and method to calculate price from the LP notifications data... Can you tell me a method efficient to get price from ws notifications ...
0 votes
1 answer
49 views
Understanding Real-World Arbitrage Opportunities on Solana: Beyond Theoretical Models
A lot of Solana arbitrage discussions focus on theory — comparing prices across DEXs, simulating swaps, or building “paper” bots. However, most of these models fail in live environments because of ...
0 votes
0 answers
26 views
Yellowstone Geyser use on Windows
I want to use a GRPC based on Yellowstone Geyser but the problem is that I'm on Windows so I cannot use the crate yellowstone-grpc-client since it's only available for Unix system. So if I understand ...
2 votes
1 answer
40 views
Tried to create my first program using npx create-solana-dapp, anchor version is 0.32.1 avm version is 0.32.1 Following error comes
unresolved import solana_instructions_sysvar::store_current_index_checked --> src/lib.rs:156:17 | 156 | store_current_index_checked, Instructions, | ^^^^^^^^^^^^^^^^^...
2 votes
1 answer
32 views
SendTransaction missing from Yellowstone Geyser GRPC
I'm pretty new to Solana development and I wonder if there's a SendTransaction method in a Yellowstone Geyser implementation because I didn't see anything related to this in their proto (https://...
0 votes
0 answers
22 views
Facing Issues deploying contract on solpg with phantom wallet
Solpg is asking for signatures in infinity when deploying while sometime it show insufficent balance Deploying... This could take a while depending on the program size and network conditions. Warning: ...
0 votes
0 answers
44 views
Raydium v4 AMM offsets
I just ask this question to know if my code has the right offsets for the Raydium v4 AMM program because it's pretty difficult to find them online. Thanks for the help ! Here is the code : fn ...
0 votes
1 answer
31 views
WalletSendTransactionError: Unexpected error while creating token
Title: WalletSendTransactionError: Unexpected error while creating token Description Hello 👋 While experimenting with a dApp, I encountered the following error: WalletSendTransactionError: ...
3 votes
1 answer
42 views
Transaction failed with "InsufficientFundsForRent" whereas logs show success
Reference Transaction 1 Reference Transaction 2 These transactions have failed with the error "InsufficientFundsforRent". However, the program logs do not contain any errors. Is this ...