How to reduce the frequency of the "RPC method invocations" arose as a result of ethers.js event listener? #3599
Unanswered
EhsanMarufi
asked this question in
Q&A
Replies: 1 comment
-
Without much context I would suggest using a websocket-provider. That said, a few things to consider if that is not an option:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using the
on
method on theContract
class provided by ethers.js, to set up an event listener for an event of a smart contract:The Hardhat node console keeps logging some specific RPC methods as a result of the "event listener" (and nothing else):
I believe ethers.js continuously queries the blockchain-logs for matching events. I need to decrease the frequency of the "RPC method invocations" down. So, How may I achieve that?
Beta Was this translation helpful? Give feedback.
All reactions