TON to Jetton swap not working
slyofzero opened this issue · comments
Ishan Shishodiya commented
While following the code on the TON to Jetton swap guide using proxy TON, I keep getting the error.
Error occurred - Rate limit exceeded: 1 per 1 second
The code I am testing only has the wallet address changed and nothing else.
Stanislav Mekhonoshin commented
Same here.
You need to use an api key to make it work:
const provider = new TonWeb.HttpProvider('https://toncenter.com/api/v2/jsonRPC', {apiKey: 'mycode'});
Pavel Rakhmanov commented
TonWeb, by default, uses toncenter API with a rate limit of 1 request per second
You can obtain higher limits by: