This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
I'm using Etherscan to look at values of transactions at different contracts.
One contract transaction returns 95100000000 for the Eth value 0.00000951
The a separate smart contract transaction returns 272511191 for the Eth value 2.72511191
the last contract transaction returns 1249875000000000 for the Eth value 0.01249875
Web3.fromWei(value, 'ether') works in all cases.
But I'm trying to learn how you would do it normally, for example in Python. Dividing by 10e17 works for one case but not the other. I'm going insane
edit: I learned some ERC20 dont follow conventions with decimal places (ex. formatting with 9 only instead of 18). How does Web3.fromWei work though without an RPC to call the smart contract logic?
Subreddit
Post Details
- Posted
- 2 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ethereum/co...