Categories
Solana

It’s simple as that. I’m C# dev, making module to perform swaps, using jup.ag swap API (v6) + dedicated free RPC.

Everything seems to be just fine, txn’s get in quite fast from what I see in charts, but in code actual “confirmation” takes 19+ seconds, always, despite me seeing new 1 second candle on chart in first 3-5 seconds after code enters in “SendAndConfirmTransactionAsync”. Commitmment is used “Finalized”.
Line is:

RequestResult result = await rpcClient.SendAndConfirmTransactionAsync( preswapInfo.SignedTransaction, skipPreflight: true); 

So, why is that?

This is NOT rpc/internet/pc whatever problem. This seems to be something with actual code and methodology with how txn’s are confirmed and perhaps commitment thing.

In jup.ag UI after executing txn I literally see “Your transaction was confirmed” in same time as 1 second candle is displayed on chart, so, it confirms in same time.
Why my solution is not working? Is jup.ag UI using other commitment for confirmations?
Can anyone who KNOWS answer has ideas guide me on this one?

<3

submitted by /u/Savings_Elevator_433
[link] [comments]

Join The SmashBotAI Telegram Community Now! Get trade alerts, smashable token trade ideas, and more!

https://t.me/smashbotcommunity

Start Trading Now:

SmashBotAI Telegram Bot

Claim Your $SMASH Airdrop Now!

Join The SmashBotAI Telegram Community Now! Get trade alerts, smashable token trade ideas, and more! https://t.me/smashbotcommunity

Start Trading Now:
SmashBotAI Telegram Bot

Claim Your $SMASH Airdrop Now!

Categories