Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
91 views

Sol swap funds missing on my phantom wallet. Coin from Raydium

I purchased 0.25 Sol of a meme coin called BITCOIN. The Transaction was marked as successful. The 0.25 Sol was taken from my original balance, but my wallet was never updated with the new meme coin. ...
user29690's user avatar
0 votes
1 answer
85 views

How to accurately calculate token price using bonding curves?

How to accurately calculate token price using bonding curves? I'm fetching account info for the bonding curve: from solders.pubkey import Pubkey from construct import Struct, Int64ul from solana.rpc....
mikile's user avatar
  • 3
1 vote
1 answer
197 views

Token swap using Javascript / NODE with Raydium V4

I'm new here. I've been trying for a few days to use JUST @solana/web3.js in JS/NODE to make a Token Swap with Raydium V4. The only Raydium examples I can find are in TS, which I don't really know ...
hscanlan's user avatar
  • 111
1 vote
0 answers
45 views

"input token account not found" when trying to sell/swap tokens to SOL

Heyhey! I'm currently writing a tool that lets me buy/sell/swap Tokens on the Solana blockchain. Buying (swapping SOL for any Token) "seems" to work, I get the Tokens into my wallet and the ...
DungeonCrawler's user avatar
0 votes
0 answers
105 views

Why is the raydium API swap code so problematic

Currently i am using the following code to perform swaps on raydium: https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/api/swap.ts However often it returns the error: ...
fboi1's user avatar
  • 13
0 votes
1 answer
49 views

Initializing PDA (Program Derived Address) for the Token Swap Program keeps throwing error

I want to find and initialize a PDA for Token Swap Program https://spl.solana.com/token-swap It keeps throwing this error: transactionMessage: 'Transaction simulation failed: Error processing ...
Joseph Wu's user avatar
1 vote
0 answers
86 views

Calculating Stable Coins swap price from LP of a DEX

I'm a bit new to this and I am interested in how could I calculate the swap price with stable coins from the amount of tokens in LP? I've read the Token Swap Program and using the formula there looks ...
nicholas__'s user avatar
0 votes
0 answers
323 views

How can I swap solana token in python

I have been struggling for nights to get a swap on solana network running in python 3.10.2 installed solana, solders and Raydium but I can't get it to work. this is what I have: import time from ...
Paul tje's user avatar
1 vote
1 answer
33 views

Token without value of dollar $. How to swap it back? [closed]

How can I swap a token back that does not show a $value? Status “frozen”
Olga's user avatar
  • 11
0 votes
1 answer
184 views

What determines the fee payer on a token swap?

On a CEX both parties will, depending on their respective volumes of trading, typically pay a fee to buy and sell a pair. One will be the maker the other the taker and fees will change accordingly. ...
rism's user avatar
  • 101
1 vote
0 answers
64 views

How to get token transaction history with sold tokens in specific time range amout in Solana blockchain?

Could someone please guide me on how to retrieve transaction history along with the bought token amounts on the Solana blockchain? Like it is in Dexscrener? .png example below I want to get that ...
Deimantas Maksele's user avatar
0 votes
1 answer
191 views

How to prevent transactions replay in solana?

Suppose I want to buy a token. If I send 100 transactions to buy it within 1 minute, how can I ensure that only at most 1 of these 100 transactions will be successful?
user2873314's user avatar
1 vote
3 answers
539 views

Solana Token Swap Program - Error Given pool token amount results in zero trading tokens when performing Swap instruction

Hello I get an issue when I try to perform a swap on a token-swap program deployed on devnet. Error : Given pool token amount results in zero trading tokens Transaction as an example : ...
Skelt's user avatar
  • 31
0 votes
2 answers
604 views

Solana Token Swap Program - Program log: panicked at 'index out of bounds: the len is 0 but the index is 0', token-swap/program/src/state.rs:61:17

I am facing an issue when I try to create a token swap through the js binding for the token swap program. https://github.com/solana-labs/solana-program-library/tree/master/token-swap I don't get the ...
Skelt's user avatar
  • 31
0 votes
1 answer
187 views

How creating a swaper for my token

what is the best way of creating swap for my token in on the chain? i know about creating swap using The Token Swap Program but is there another way to be more robust for production level projects?
soroosh.m's user avatar