Skip to main content

All Questions

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

How to parse transactions swap like explorers do

I'm trying to identify a buy or sell transaction, from which token to which token and how much was bought/sell. My goal is to have an output similar to that of dexscreener, photon or gmgn... I don't ...
S G's user avatar
  • 1
0 votes
0 answers
173 views

Feepayer issue while swap

I am facing the issue while swapping the tokens using Jupiter API, I want to swap from other and feepayer will be another account. while swapping the feepayer account error show: Error Swap: Cannot ...
Bobz's user avatar
  • 574
1 vote
0 answers
318 views

Unable to Build Rust Program with jupiter-core Dependency for Swapping SOL to USDC

I started learning Solana very recently and right now I'm trying to perform a swap transaction to swap SOL to USDC. I found out that there's a Jupiter DEX and I'm trying to use its library. But ...
EugeneS's user avatar
  • 11
0 votes
1 answer
776 views

Swapping a token for SOL on Jupiter. An example from github

I've found this repository https://github.com/jup-ag/sol-swap-flash-fill It claims that it can swap ANY SPL token for SOL. After having examined the code, though, I haven't found any place in it where ...
kriss100's user avatar
0 votes
1 answer
384 views

How to swap assets on-chain on any popular DEX?

I need to create a Program with a function swap_on_dex(...) which will accept an input token with an amount, a target wallet address and execute a swap for SOL (optionally, for other token) on any ...
ursula's user avatar
  • 1
1 vote
1 answer
420 views

How to swap SOL <-> token / vise versa but on-chain (in a smart contract)? On Raydium or SolDex

I'm aware of this question How to interact with router for swap transaction? but mine is different. How to swap a token for SOL or vise versa from within a Solana program/smart contract? That is, on-...
barugaggi's user avatar
0 votes
0 answers
209 views

Trying to do a DEX CPI to perform fully on-chain swaps

I want to create a fully-onchain swap through any clmm dex so for this example I'm trying through raydium even tho I just want to make it work. I'm using the github repo here to import necessary ...
David's user avatar
  • 1
2 votes
2 answers
6k views

Performing a swap

I am clueless on how to perform a swap (ex. USDT to USDC) on the Solana blockchain on Raydium with code. I am currently using @solana/web3 and also not too familiar when it comes to programming. Any ...
stacksolana's user avatar
2 votes
0 answers
1k views

How to get AmmId of a pair of tokens with Raydium pool [closed]

I'm trying to make a swap transaction between USDC and another token. The instruction take the AmmId as a parameter. How can I get that value if I only have the addresses of the tokens?
Bruno's user avatar
  • 21
-5 votes
1 answer
168 views

How to convert from USDT (Tether) to USDC? [closed]

I've USDT (Tether) on gate.io (which support SOL or other Solana tokens), but they don't support USDC. In this case, what's the easiest way to convert/swap USDT to Solana's USDC? Is it possible to ...
kenorb's user avatar
  • 529