I created an ubuntu server and made a websocket connection with wscat. I have 2 questions, I would be glad if you could answer them.
It is said that there is a daily limit of 100,000 rate. I am using websocket. Is there a rate limit on Websocket connections? For example, I want to get 1000 transaction details per minute by using the “eth_getTransactionReceipt” method over the connection I set up with wscat. If I send 1000 queries, does it count as 1000 requests? My goal is to get details of transactions in each block.
On my Ubuntu server, I want my connection with WSCAT to run smoothly in the background 24/7 (I’m wondering what the disconnection status is). Is there a blog post on how to do this?
hi @Anil, if you send getTransactionReceipt over ws it will be counted against the daily quota. Try to look into the subscribe method maybe you could accommodate it as the incoming data over ws is not counted against the limit.
The ws connection is automatically disconnected only if the connection goes idle for 1hr+ (eg no data coming through). You’ll probably need a reconnect routing in your code to handle the disconnects. Here’s a good example with web3js.
newHeads will only return the latest blocks, maybe pendingTransactions, what are you trying to monitor more exactly ?
Btw, maybe these two links would help a bit:
What I want to do is:
I want to constantly monitor transactions on the Ethereum network.
For example, I want to get all the details of the transactions in block number 12288433 one by one.