Al366io / solana-transactions-wrapper

Handy tool to execute buy/sell transactions on the SOLANA chain
https://www.npmjs.com/package/solana-transactions-wrapper
MIT License
48 stars 10 forks source link

Error buying token: Error: fetch failed #10

Closed Ytu-str closed 3 months ago

Al366io commented 3 months ago

Could you please provide more information? A little hard to help like this 😁

Ytu-str commented 3 months ago

Thanks for your reply, the program can run normally,But I had a problem:The probability of a correct transaction being completed is very low,Many cases are not stuck at the last one.Is it caused by the network problem of jup? What are the good solutions?

Ytu-str commented 3 months ago

Been waiting for confirmation

Al366io commented 3 months ago

When I implemented the package, the % of successful transactions was over 95% with default settings. If you are changing the slippage, that could be the first thing i would look into! Default value is 1%

If not, i'd still play with that value a bit to find the perfect tweak for your needs. Another thing worth noticing is that the package defaults the network fees to "auto" which is an automatic value Jupiter sets. Could be good trying to higher these two values and see if it increases your % of succeeded transactions!

Al366io commented 3 months ago

added #11

Ytu-str commented 3 months ago

Can you tell me which RPC ENDPOINT you're using?

Al366io commented 3 months ago

Quicknode