eth_newPendingTransactionFilter not working #180
-
EnvironmentMainnet Provide a brief description of the functionality you're trying to implement.Hi, I'm trying to find the fastest way to get pending transactions, I tried use eth_newPendingTransactionFilter to create filter and then use it via eth_getFilterChanges, but often I got error like Could you help me wit hthis task, may be I do something wrong. Thank you What is the specific issue or error you're encountering?above Can you share the error messages or logs you're receiving, if any?`wscat --connect wss://mainnet.era.zksync.io/ws
Have you made any recent changes to the contract before encountering this issue?No Are there any external libraries or contracts that your contract interacts with?no Can you provide the relevant portions of your contract code where the issue is occurring?no contract Have you tried to isolate the problem, and if so, what were the results?no What steps have you already taken to try to resolve the issue?I tried use different servers, I thought that the problem is on Cloudflare side, but without result Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hey @kolesnevg 👋 , To prevent potential abuse by bad actors repeatedly creating filters, there is a limit on the number of filters that can be created. Because new filters override the old ones, it's possible that your filter may be overridden between your requests. I would recommend using
please, let us know if it helps. |
Beta Was this translation helpful? Give feedback.
Hey @kolesnevg 👋 ,
To prevent potential abuse by bad actors repeatedly creating filters, there is a limit on the number of filters that can be created. Because new filters override the old ones, it's possible that your filter may be overridden between your requests. I would recommend using
eth_subscribe
to receive updates on new pending transactions instead:please, let us know if it helps.