chainstacklabs / raydium-sdk-swap-example-typescript

An example to swap tokens on Solana using the Raydium SDK, TypeScript, and Chainstack
MIT License
99 stars 35 forks source link

No Transaction found in Chainstack RPC & No Transaction in Solscan even after successfully swapped ! #5

Closed anisurrahman072 closed 4 months ago

anisurrahman072 commented 5 months ago

Hi @soos3d, I have seen exactly a same output like your one 👇

https://github.com/chainstacklabs/raydium-sdk-swap-example-typescript/issues/2#issuecomment-2012547797

It seems like the transaction was succeeded but no effect on Solscan & even in Chainstack i don't see any transaction that was passed (0 passed 0 failed). But the log in terminal seems like OK as like as your response in the link above.

I had 0.01 SOL in my account & wanted to SWAP 0.0001 SOL. Below is the config of SWAP 👇

Screenshot 2024-04-02 at 3 07 29 PM

Finally nothing swapped !!! My main account balance was 0.01 SOL & still that is 0.01 SOL. No change in any end !!!

Could you please help me on this @soos3d ?

datacoder-io commented 5 months ago

Same issue Im using private RPC node

Krshivam25 commented 5 months ago

I have same issue I swapped the token using the RPC node and its not coming in SOLSCAN

soos3d commented 5 months ago

yeah this happens when the chain is really congested; the transactions are simply dropped. Unfortunately, there is not too much we can do at the moment besides increasing priority fees (the maxLamports parameter in swapConfig) and send transactions continuously until one goes through🥲

I'm looking into editing the code a bit to improve the chances.

datacoder-io commented 5 months ago

You must spamming until the tx confirmed

anisurrahman072 commented 5 months ago

yeah this happens when the chain is really congested; the transactions are simply dropped. Unfortunately, there is not too much we can do at the moment besides increasing priority fees (the maxLamports parameter in swapConfig) and send transactions continuously until one goes through🥲

I'm looking into editing the code a bit to improve the chances.

Ohhh now I'm again facing the ISSUE. After completed SWAP I see a Transaction Id. But that is a fake transaction link on Solscan !!!!!

My thought from ethereum is that, if transaction failed then that transaction must show in Solscan that transaction failed with a reason !!!

By the way, I made lamports to "150000000000" & still that not working !

anisurrahman072 commented 5 months ago

I'm thinking anything happened to Chainstack RPC !? It was working days before today 😵‍💫

soos3d commented 5 months ago

yeah, unfortunately, Solana is super busy, and a lot of transactions are dropped before being confirmed. They are working on a fix for this and will hopefully be released soon!

zhi-cike commented 4 months ago

Same issue sometimes, maybe can set maxRetries larger or not set this parameter when call sendTransaction

image

image