Skip to content

eth_newPendingTransactionFilter not working #180

Closed Answered by vasyl-ivanchuk
kolesnevg asked this question in General
Discussion options

You must be logged in to vote

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:

wscat -c wss://mainnet.era.zksync.io/ws
> {"jsonrpc":"2.0","id": 2, "method": "eth_subscribe", "params": ["newPendingTransactions"]}

please, let us know if it helps.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kolesnevg

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
6 participants