Hello everyone,
I have some doubt about response header in order to avoid an IP ban, Iβm reading the documentation at https://docs.moralis.io/misc/rate-limit#rate-limits-when-calling-web3-api-using-http but the headers returned by the service are not corresponding with the doc.
So, let suppose that we are calling the api /ipfs/uploadFolder with a free account, and I receive these headers:
x-rate-limit-remaining-ttl:β1β,
x-rate-limit-remaining-ip-ttl:β1β,
x-rate-limit-used:β25β,
x-rate-limit-ip-used:β25β,
x-rate-limit-limit:β25β,
x-request-weight:β25β
So if I understand well the meaning of header are (for second):
x-rate-limit-limit -> The rate limit
x-rate-limit-weight -> The weight for the api
x-rate-limit-used -> The rate limit already used
x-rate-limit-ip-used -> The rate limit already used for that specific IP address
x-rate-limit-remaining-ttl -> ???
x-rate-limit-remaining-ip-ttl -> ???
If I understand well in this way I can call the api just one time for second, but in some test I called the api twice in less than a second and got a positive answer. If I call the same api for example 200 time in less than a minute, will I reach the rate limit for minute and get banned?
So the questions are:
How can I know how much time Iβve to wait to avoid rate limit?
What is the meaning for ttl?
How many request can do for minute for a single api?
Thanks.