Is there any limit of API in sight server


(Monark Agarwal) #1

Is there any limit of api hit in insight server?
Is there any possibility of issue occured in insight server?
Is there any support for the same?


#2

There is a limit in maximum queries to do to insight-api. you can disable it in the bitcore-node.json file adding

“insight-api”: {
“disableRateLimiter”: true
}

under “ServicesConfig”

I am not expert at all, I hope this helps


#3

there still is a limit i found there is a way to increase it


(Monark Agarwal) #4

How can i increase limit?


#5

in the api folder there is a file. In it there are hard aoi request limits (ratelimiter.js)
10800 is the normal for disabled api
By changing the
normal: {
totalRequests: options.limit || 3 * 60 * 60, // 10,800
interval: options.interval || THREE_HOURS

to something like

normal: {
totalRequests: options.limit || 3 * 60 * 60 * 1000000, // 10,800,000,000
interval: options.interval || THREE_HOURS

it can handle more. Still limited but works so far.
Doing tests with multiple connections and working so far


(Monark Agarwal) #6

Thanks…Can you please tell me Is there affect to own server when insight
server will down?


(Monark Agarwal) #7

Hi,

Is there any API which provide the multiple address information in "
/insight-api/addr/1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T,
1NcXPMRaanz43b1kokpPuYDdk6GGDvxT2T?noTxList=1"
It not working for multiple address it is only for single address.