Categories
Cryptocurrency Ethereum Mastering Development

Detecting dropped and replaced transactions web3.py

I am using web3.py. Given a transaction hash, is there any way to determine if a transaction was dropped and replaced by another transaction with the same nonce? Currently i am looping w3.eth.getTransactionReceipt(tx_hash) in a try/except to detect when the transaction has been confirmed. while(True): try: tx = w3.eth.getTransactionReceipt(tx_hash) except: continue break If the transaction […]