111 questions
-1
votes
0
answers
5
views
How to add solana-address-lookup-table-program program to solana-program-test
While testing using solana-program-test .
I tried to make a transacton to craete a lookup table. However , I encountered the below error and after some search I found it is because the address lookup ...
1
vote
0
answers
42
views
Solana USDC Transfer: "Cannot Read Properties of Undefined (Reading 'from')" Error in @solana/spl-token
I'm trying to transfer USDC on Solana using @solana/spl-token in a React app with @solana/wallet-adapter-react, but I'm getting this error:
Uncaught TypeError: Cannot read properties of undefined (...
4
votes
2
answers
2k
views
unexpected `cfg` condition value: solana
I'm trying to make a smart contract with Solana and build it using Anchor on WSL, but everytime it always gives a target_os warning like this:
warning: unexpected cfg condition value: solana
--> ...
0
votes
0
answers
115
views
Associated address does not match seed derivation
I have tried to transfer spl token from user account to program(contract) I wrote this contract with help of GPT have fixed many things now I stuck here with this error
solpg ERROR
Running client...
...
1
vote
0
answers
376
views
Transaction signing failure raydium CP-Swap
I have been attempting to send transactions using the Standard AMM (CP-Swap, New), particularly for tokens that do not utilize the OpenBook program ID. However, I encounter issues during signing and ...
-3
votes
1
answer
136
views
How to implement TS code connection.onLogs monitoring in Rust
enter image description here
I want to implement the watchRaydiumV4Initialize2Logs method, so I need to find something similar to connection.onLogs in Rust, but the RpcClient struct in solana-client ...
0
votes
0
answers
5k
views
Error: "Could not find token account XXXXXXXXXXXXXXXXXXXX" after using spl-token create-account
After following these steps, I receive the error "Error: "Could not find token account ___" when trying to mint or transfer tokens to a recipient.
Creating keypairs:
solana-keygen new ...
0
votes
1
answer
170
views
Having issues with solana cli token distribution, recieving error PickleDbError(Error { msg: EOF while parsing a value })
enter image description hereHi im recieving the error above in the title while running solana-tokens distribute-tokens on devnet. im following the instructions correctly. Below im adding an image of ...
0
votes
1
answer
928
views
Blockchain - Raydium - Python - Matching Transactions cross wallet
I have been trying to create a program in python to analyze my Pnl of trades subcategorized by wallets that I am copy trading on Raydium. I have tried out two code bases so far and the first returns 0 ...
1
vote
1
answer
751
views
Solana Inner Instruction & Instruction Relationship
I am a beginner in Solana development. I just have a question regarding instruction and inner instruction.
https://solscan.io/tx/...
0
votes
0
answers
196
views
Error Deploying Solana Nodes on OVH Machines: QUIC Connection Timed Out
I've been deploying 2 solana nodes (1 RPC and 1 Validator) on OVH machines, but I've encountered the following error:
2024-05-14T11:06:39.244108182Z WARN solana_perf] CUDA is disabled [2024-05-...
0
votes
2
answers
999
views
Failed to upgrade solana program
I always close and redeploy but it's annoying. So I need to upgrade instead.
solana program upgrade target/deploy/program-keypair.json new_program.json owner.json -u "https://mainnet.helius-rpc....
0
votes
1
answer
236
views
How to execute a TS that was designed for solana Playground, locally. To launch on mainnet
I have a TypeScript script that was initially created to run in the Solana Playground, and I would like to execute it locally on my pc, since playground only allows devnet. I only want to update the ...
1
vote
1
answer
884
views
Solana SPL token transfer from A to B wallet in program with PDAs
I am trying to develop a program on the Solana network, I have had experiences for EVM before but Solana looks very different.
If we give an example on EVM, it is enough to authorize spending with &...
0
votes
1
answer
252
views
Compute fee for Solana transferCheckedWithFee instruction
When broadcastring a token-2022 program transaction using the transferCheckedWithFee instruction, solana documentation suggest to compute token fee using this formula:
const fee = (amountToSend * ...