Closed andres15alvarez closed 2 years ago
Infura may be pruning their nodes. If the node is pruned then transactions older than a certain number of blocks may not be found.
@andres15alvarez, I'm with @LefterisJP on this. For whatever reason Infura was not at the latest block. I can currently get the transaction receipt for that transaction hash so at the moment it is working. I'm going to close this as this isn't an issue with web3.py but feel free to re-open if you feel this is still relevant.
Perfect, thank very much to you both @fselmo @LefterisJP. I'm going to fix my code to handle this infura's problem.
pip freeze
outputWhat was wrong?
The error: Transaction with hash: ''0x407b866ac4f1083f15b6b25537a0938cfb1606a5b245032f82871c85097bb1ec" not found but in etherscan the transaction exists: https://ropsten.etherscan.io/tx/0x407b866ac4f1083f15b6b25537a0938cfb1606a5b245032f82871c85097bb1ec
I'm using Infura as provider with web socket
# Python
`
Note: We prefer to use issues to track our work. If you think you've encountered a bug in web3py or have a feature request, you're in the right place. If you have implementation or usage questions, please refer to our documentation and/or join the conversation on discord.