You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What was wrong? --- Can't call create filter on contract
Please include any of the following that are applicable:
The code which produced the error
myContract = w3.eth.contract(address="some_address",abi=contract_abi) #this works fine, i can call methods from here and i get a response
myfilter_new= myContract.events.Transfer.createFilter(fromBlock=0, toBlock='latest')
#when i run this, i get the following issue:
Infura does not support the eth_newFilter rpc endpoint, because it requires creating stateful filter on the node, and in general Infura doesnt support stateful api's. Infura does support the non-stateful endpoint eth_getLogs. There is an open pull request for a middleware that creates a locally managed filter that uses eth_getLogs (#732). Until that is released, you have the option of using web3.eth.getLogs() or running a local node, like parity or go-ethereum.
An example of using getLogs(), with the assumption that the event is not anonymous:
What was wrong? --- Can't call create filter on contract
Please include any of the following that are applicable:
The code which produced the error
myContract = w3.eth.contract(address="some_address",abi=contract_abi) #this works fine, i can call methods from here and i get a response
myfilter_new= myContract.events.Transfer.createFilter(fromBlock=0, toBlock='latest')
#when i run this, i get the following issue:
The full output of the error:
HTTPError at /testing/
405 Client Error: Method Not Allowed for url: https://rinkeby.infura.io/my_api_key
Fill this section in if you know how this could or should be fixed.
The text was updated successfully, but these errors were encountered: