'How can I filter pending transactions of a specific address web3.py
I'm wondering how I can get pending transaction of a specific address using web3.py
I tried this but I don't know where I can put the address to get the pending transaction.
w3 = Web3(Web3.HTTPProvider("https://bsc-dataseed.binance.org/"))
w33 = w3.toChecksumAddress("0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82")
pending_transactions_filter= w3.eth.filter('pending')
while True:
pending_transactions_filter = w3.eth.filter('pending')
pending_transactions = pending_transactions_filter.get_new_entries()
print(pending_transactions)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|