tonkeeper / opentonapi

Opentonapi simplifies development of TON-based applications and provides an API centered around high-level concepts like Jettons, NFTs and so on keeping a way to access low-level details.
MIT License
120 stars 25 forks source link

change liteserver storage to tonapi client to get jetton info in the … #302

Closed zakhar-petukhov closed 5 months ago

zakhar-petukhov commented 5 months ago

…rates method

thedemons commented 2 months ago

Hey, could you explain the reasoning behind this change?

mr-tron commented 2 months ago

good question

thedemons commented 2 months ago

I'm getting a lot of errors because tonapi.io API is rate-limited, the whole point of running opentonapi is to use my own node & lite server, I don't understand why this change is necessary.

2024-04-08 13:00:36 {"time":"2024-04-08T06:00:36.334764054Z","level":"ERROR","prefix":"-","file":"market.go","line":"122","message":"[sendRequest] bad status code: 429, https://tonapi.io/v2/jettons/0:54bf44ac61bfc7a535fe5dd3a0149c1b99dda284c7115e75b52a99819850beb6"}
2024-04-08 13:00:36 {"time":"2024-04-08T06:00:36.334789996Z","level":"ERROR","prefix":"-","file":"market.go","line":"480","message":"[convertedDedustPoolResponse] failed to get jetton info: bad status code: 429"}
bobbychen commented 2 months ago

@thedemons Did you solved this problem?

thedemons commented 2 months ago

@thedemons Did you solved this problem?

Yes, I just did it the easy way and change the url back to localhost, also keep in mind that when you run the docker using the provided command in READMD.md, it will use an image on docker hub instead of using your source. So you should build your own image instead.

ImTheDeveloper commented 1 week ago

Trying to build using my own file local just throws a bunch of new errors. These commits are brutal.