YZYLAB / solana-swap

Solana Swap API, for sniping bots or any platform that wants to implement fast token swaps.
https://docs.solanatracker.io
MIT License
58 stars 16 forks source link

Error Handling Failed transactions #5

Closed MrCrossAI closed 3 months ago

MrCrossAI commented 4 months ago

I'm trying to find a way error handling when a transaction fails can you guys create like any example code where we can see how we can check for error handling?

YZYLAB commented 4 months ago

Hi! I just pushed an update (1.1.0). You can now easily catch and handle errors. I have also added a new example for it. Let me know if that solves it for you.