'WETH Transaction does not appear in the web3.eth.get_transaction
I am trying to understand how can I see the amount of WETH transfered in a transaction. for exmaple on Opensea. When you go to etherscan you can see the amount. but if you use web3.eth.get_transcation(tx_hash) you will find the value to be 0 ( since its WETH and not ETH) any suggestions? Thanks
Solution 1:[1]
I'm also having trouble with this. The Phunkbot code is on github (https://github.com/albanow/phunks-nll-twitter-bot/blob/main/bot.py), and this part from the 'input' is interesting:
bid = "0x6d728796"
sale = "0xf8529df3"
accepted_bid = "0xbad9f860"
Somehow the first 10 characters of the 'input' hex is a sign of what kind of transaction it is? Doesn't seem to be the case for the contract I'm trying to monitor but maybe this code will lead you somewhere.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | gjohnsx |
