Skip to main content

Questions tagged [swap]

The tag has no usage guidance.

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

Swap from SPL -> SOL is sending the input amount * 10^9

Currently I am running into an issue when I try to send the transaction to swap 5 tuusdc to sol on solscan it shows up as "swap 5,000,000,000". When I send a transaction to swap sol -> ...
user30587's user avatar
0 votes
1 answer
49 views

AMM vs CLMM constant product?

From what I've researched and understood, AMM uses constant product curve for price. Does CLMM also use constant product formula within ticks (each tick seperately), the only difference is that the ...
nicholas__'s user avatar
0 votes
0 answers
16 views

How can I find out about upcoming airdrops?

Which DeFi protocols offer staking rewards?How can I participate in Solana-related social media campaigns? How can I contribute to Solana's open-source codebase?
Dorji Dorji's user avatar
0 votes
0 answers
9 views

During the swap, a sufficient number of tokens did not arrive

Сan anyone explain to me where my tokens disappeared?https://solscan.io/tx/5Lg7n4KQVwFQpDgNj9czWa6mSdhHpjR7yXov8uwVSiicWzvTV1FRKv6J1xHPJiJ9bGj5V6EBy2dijNa5Uiv2gmbW?__cf_chl_rt_tk=yEkmeGAv9DQtdvL3F....
Adil's user avatar
  • 1
0 votes
0 answers
22 views

How to merge two transaction instructions into one transaction in Python?

Im trying to make a transaction with two swaps in it that looks like this: Swap 1 Instructions: {'tokenLedgerInstruction': None, 'computeBudgetInstructions': [{'programId': '...
cekop's user avatar
  • 1
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
-1 votes
1 answer
243 views

Phantom Wallet Fees

I wanted to swap memecoin "Crypto President Trump" to Ethereum on Base Network and it always say that "something went wrong" I assume that it is related to few amount of ETH on my ...
Kamil's user avatar
  • 1
1 vote
1 answer
47 views

getting error when try to send the two transactions combined for swap to jupiter sdk

i'm trying to send a two seperate swap transaction as one through the help of versioned transactions to solana network and in return i'm getting the error below SendTransactionError: Transaction ...
Anwar's user avatar
  • 21
0 votes
1 answer
84 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
196 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
13 views

token swapped and received wrong exchange

switched my tokens and only received the equivalent of 0.0000001 of the transaction not sure if it was a scam coin or just bad luck on the exchange but there was less than 5% of movement in the coin ...
FireFly's user avatar
0 votes
0 answers
18 views

Programmable swap on Jupiter

I submit an jupiter swap transaction, it gets signed and gives a tx hash, but on solscan it says "transaction not found". if anyone has fixed this problem please share your code if possible ...
Yagazie Iro's user avatar
1 vote
1 answer
138 views

Need help filtering solana transactions from QuickNode streams. Extracting amount of SOL sent and direction of swap

Im currently trying to build a whale transaction monitor. I have a QuickNode stream setup that is feeding me live Solana tx's. It gives me raw payload block data that I have the ability to filter down ...
GSean's user avatar
  • 13
0 votes
0 answers
13 views

I need access to the solana network in my wallet

I was scammed yesterday, because a account on twitter was hacked. Fabiano SOL, that I have been followed for a long time. I did go into a airdrop link, and did click, to see if my wallet was eligble. ...
Emil Riise's user avatar
0 votes
1 answer
42 views

Swap API - Balance change is not displayed when using Jupiter swap API

I'm using jupiter quote/swap endpoints to get transaction string. https://www.quicknode.com/docs/solana/swap But when signing transaction, wallets don't display balance change at all, even though it ...
Timur Nazarov's user avatar
1 vote
0 answers
15 views

InstructionError(3 , IncorrectProgramId): swap transactions weird error

I have been encountering this error when trying to create swap transactions on pump.fun, anyone knows how to fix or why its happening? And the strangest thing is that, strangely, sometimes it happens ...
Martim Martins's user avatar
2 votes
2 answers
87 views

Transaction sent with txid in log but no swap happened on Jupiter

I got the quote answer and swap answer and even the signed transaction sent but there's no swap and if i check transaction with solana explorer it says the transaction didnt exists (example of ...
marcuz's user avatar
  • 23
0 votes
0 answers
5 views

Conversion to transfer

Why is it that after I exchange my meme tokens for sol, the sol is always sent to some other address that doesn't belong to me? My address has become a forwarding address.
Ismail ROY's user avatar
0 votes
0 answers
28 views

Swap transection is successful and fee deducted but no swap happend

I am trying to build a node js app that take my Tatum.io solana wallet address which have SOL and USD-Coins and make swap. I want to convert USDC from my wallet to SOL or convert SOL to USD-Coins. the ...
umair mehmood's user avatar
0 votes
0 answers
60 views

Raydium Trading Api slippage settings

Hello guys i can't find it anywhere but i would like to set slippage to automatic, instead of using fixed numbers, is it possible?I cant figure out where to look for this kind of information, i ...
Martin's user avatar
  • 1
0 votes
0 answers
62 views

Transaction not confirmed

I used python to write a program that performs swaps on solana using Jupiter V6 aggregator, the transaction gets signed and it gives a hash, but the transaction never gets confirmed and if use the ...
Yagazie Iro's user avatar
0 votes
0 answers
17 views

Is there an API that returns a swap transaction on Raydium using mint addresses and parameters like amountIn and minAmountOut?

Looking for an API that can generate a swap transaction on Raydium Liquidity V4 using token mint addresses, with parameters like amountIn and minAmountOut. Does anyone know of an available API that ...
John Smith's user avatar
0 votes
1 answer
37 views

Using FeePayer on web3 solana token swap?

I am using javascript from github to create a solana SPL token swap, but I want to use feepayer to pay the transaction fee, I am a beginner, can you explain how to implement it? I have attached the ...
Nafisa's user avatar
  • 1
0 votes
0 answers
39 views

I wanted to swap Solana for a meme coin and now the transaction is Pending for 10 days using my Onekey wallet App

I wanted to swap Solana for a meme coin and now the transaction is Pending for 10 days using my Onekey wallet App. I tried to reboot my laptop and have updated my Onekey app and still the transaction ...
Efrain's user avatar
  • 1
2 votes
0 answers
22 views

How to fix ran out of memory issue on solana network

I am facing below issue, but actually I am not sure what the reason is. Could you please take a look at this issue and let me know how to fix this? https://solana.fm/tx/...
A.K.'s user avatar
  • 43
1 vote
0 answers
59 views

How can I retrieve Raydium Swap instruction account keys using a mint address in Rust, without making an API call?

I'm working on creating a Raydium swap instruction for the Solana blockchain using Rust and need to construct it solely with Pubkeys, without making any external API calls. Specifically, I'm looking ...
John Smith's user avatar
1 vote
1 answer
60 views

Ended Up With Weird SPL Token After SOL to USDC Swap

I swapped SOL to USDC on Phantom mobile wallet. Everything seems to happen fine. However, I am left with a USDC token that phantom does not show. Looking at the txn on SolScan, it is referred to as &...
rockleecrypto'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
1 vote
0 answers
17 views

Decimal precision error for token in phantom

I am creating a dApp, which swaps tokens from a liquidity pool( X token and SOL), the problem is with the X token, whenever I enter the amount e.g. 1000, I apply decimal precision. i.e 1000 * ...
Parth's user avatar
  • 11
0 votes
0 answers
26 views

Jupiter Terminal input mint configuration

I'm integrating Jupiter terminal in my next.js project and I want to know how to fix my input mints to SOL and USDT only. const mod = await import('@jup-ag/terminal') const init = mod.init ...
Hamza Faqhi's user avatar
0 votes
1 answer
90 views

All transaction return "Signature XXXXXX has expired: block height exceeded."

I try to swap USDT to other token through SWAP API but it got the same error.block height exceeded. this is my swap function async function handleSwap(wallet: any, coinName: string, amount: number) { ...
John Nick's user avatar
0 votes
0 answers
29 views

Jupyter swap fee settings

please tell me how I can accept commissions fee for any swaps in my application in SOL/USDT. What if the pair does not contain sol/usdt, do I need to create 1000 token accounts in my jupiter referral ...
Ian's user avatar
  • 1
0 votes
0 answers
11 views

Charts intervals on all PERPS revert back to 15min. No matter what

I'm getting this bug while trading today and its really limiting activity today. I will select the 1 minute interval on the PERP market charts, and as soon as i do, the interval reverts back to 15min ...
user26212's user avatar
0 votes
1 answer
77 views

facing a "Create Account: account Address already in use" when running TokenSwap.createTokenSwap method

Hi I am facing a "Create Account: account Address { address: xxx, base: None } already in use" when running TokenSwap.createTokenSwap method which is associated to package @solana/spl-token-...
user3655574's user avatar
0 votes
1 answer
249 views

How to add two Jupiter swap transactions

// First swap transaction (JUP to SOL) const quoteResponse1 = await ( await fetch( "https://quote-api.jup.ag/v6/quote?inputMint=JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN&...
Thrishank 3410's user avatar
0 votes
1 answer
1k views

Pump dot fun Official program ids

Hello I am trying to code a pump.fun bot which buys and sells tokens via js. I am having trouble coming up with the official program ids. Can someone please help me provide the official program ids ...
Jimmy Hernandez's user avatar
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
108 views

VersionedTransaction too large

I'm trying to execute a series of swaps, returned by Jupiter as a single atomic transaction. Is contains following instructions token_ledger_instruction compute_budget_instructions setup_instructions ...
Oleksii's user avatar
  • 111
0 votes
1 answer
103 views

Why am I getting "Error: The provided token program does not match the token program expected by the swap" in my Solana Token Swap?

I am working on a Solana Token Swap program, and I keep encountering the following error during the swap operation: Program SwapsVeCiPHMUAtzQWZw7RjsKjgCjhwU55QGu4U1Szw invoke [1] Program log: ...
jpepesi's user avatar
  • 31
0 votes
0 answers
116 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
325 views

How to calculate the amount of tokens a certain amount of SOL can buy in pump.fun swap?

I want to keep the SOL side fixed while buying tokens on pump.fun. But the buy function provided by pump.fun doesn't allow for SOL to be passed as fixed side. Even if the value is close to the amount ...
Tushar Sahoo's user avatar
0 votes
0 answers
52 views

Loaded Addresses

Calling getTransaction method we potentially could have loaded Addresses whats the point in this if we still need to fetch address table lookup?
silverhand2304's user avatar
1 vote
0 answers
181 views

Jupiter transaction not getting confirmed despite multiple retries

I'm working on a Solana-based application and I'm facing an issue with transaction confirmation. I have implemented a function called transactionSenderAndConfirmationWaiter that is responsible for ...
Oussama Mowgli's user avatar
1 vote
0 answers
54 views

How to track transactions for spl tokens

I am a Web 2 developer currently learning about Solana. I prefer learning by doing, so I am building an app but have encountered an issue. I want to calculate the price of tokens available in a user's ...
Nabeel Munir's user avatar
2 votes
1 answer
60 views

ATA account can be re-created after closed?

Please check out this account: Ao48iFWgBDb2JeRzbS3274n67j7sZSiYSRy12Fs6v6if, in each transactions, this account (wsol ATA) is created at beginning and closed at end of each tx, I am a little confused. ...
user2873314's user avatar
2 votes
0 answers
106 views

"TypeError: Cannot read properties of undefined (reading 'toBase58') when performing chained swap on Solana"

I am working on an arbitrage bot on the Solana blockchain that performs chained swaps using the Jupiter API. I aim to swap from SOL to an intermediate token and then back to SOL in a single ...
David's user avatar
  • 339
1 vote
2 answers
410 views

Why can't I send out my solana from phantom

When I attempt to do so it says something along the lines of unable to send or failed also transaction failed during simulation My wallet is EYsJVQU5igQNaNMptsyL2A6h6QWso34MYxTriAkdQqWj I am not sure ...
asset's user avatar
  • 11
4 votes
2 answers
1k views

How to listen and decode all buy raydium swaps

As the title suggests the goal is to listen to all Raydium swaps that happen live, preferably via websockets and be able to decode meaningful info. I have a code snippet that to my understanding does ...
Makis Christou's user avatar
1 vote
0 answers
191 views

Is there any way to go about recovering Solana stolen through phantom [closed]

On July 20th, a transaction was signed authorizing the transfer of exactly 44 Solana from my wallet (HcYw37YxybjT29DBofzwAtj6o9gViSzPCcisgCJA72sd) to another wallet (...
Mohanad's user avatar
  • 11