Questions tagged [swap]
The swap tag has no usage guidance.
9
questions
1
vote
1
answer
31
views
i'd like to add a raydium swap function to the flutter
i'd like to add a raydium swap function to the flutter.
So, i making a function.
( i'm not familiar with dart language. )
class RaydiumProgram {
static final Ed25519HDPublicKey id = ...
2
votes
2
answers
98
views
How do I implement Jupiter's VersionedTransactions into Python?
I've been having a bit of trouble while trying to implement Jupiter's V4 swap API into my program. Although I haven't had any issues retrieving the transaction, I haven't figured out how to execute ...
1
vote
2
answers
87
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 : ...
0
votes
2
answers
105
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 ...
1
vote
0
answers
73
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?
0
votes
1
answer
37
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?
1
vote
1
answer
61
views
TokenSwap createInitSwapInstruction, where can I find "Account" variable?
import {
PublicKey,
Keypair,
Transaction,
Connection,
SystemProgram,
} from "@solana/web3.js";
import {
TokenSwap,
TOKEN_SWAP_PROGRAM_ID,
TokenSwapLayout,
CurveType,
} from ...
1
vote
0
answers
26
views
How can i create an nft swap system? [closed]
I want to make a platform where NFTs from any projects can be exchanged. Does anyone have any ideas about how I can proceed?
-5
votes
1
answer
58
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 ...