0

I am using the URL "https://mainnet.infura.io/v3/key". But I can't get a pending transaction. This is my code.

pendingTransaction = web3.eth.filter('pending')

I had an error like this.

The method eth_newPendingTransactionFilter does not exist/is not available.

What reason this error?

0

Infura does not provide stateful API methods, like creating filters. A filter would need to maintain a state on the server side.

Depending on the use case

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.