-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot convert 'Transaction' object to bytes #1
Comments
That's most likely due to the mismatch between the data you received from |
As @akegaviar mentioned, sleep is a workaround, for my case, I kind of decoupled the logic, and separated the buy event, instead of waiting, you can rerun with retries till the expected result is satisfied. It had a great impact on the bot results |
@akegaviar I increased the cooldown to 120 |
@creosmart I suggest you add logging to see at what the stage the issue is. |
@creosmart I encountered this same issue. I fixed it by using |
Thanks for the help @nickatnight . I should have included requirements.txt right from the start but missed that and only added it yesterday. |
Thanks a lot @nickatnight, as a beginner I couldn't figure it out and it was doing my head in 😁 |
Facing the same issue even in version 0.34.0 |
There should be solana==0.34.3 in requirements.txt, or it will install 35 version thats not working. |
The problem is in For example, the transaction for ATA creation will look like this:
The transaction for buying a token (with the
|
No guarantee that you can be the first one buying, it depends on so many factor, including the used node, latency, tasking the operations needed will just make things simpler, trackable, and gives you a better observability. Also easy to scale your operations if you wish to try multiple strategies and study the result |
Hello, seems there's an error when running trade.py:
"Attempt 1 to create associated token account failed: cannot convert 'Transaction' object to bytes"
Thanks
The text was updated successfully, but these errors were encountered: