Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

4
How to go from Value to Eth without Web3 library?
Post Body

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?

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
23,483
Link Karma
8,384
Comment Karma
15,099
Profile updated: 1 day ago
Posts updated: 7 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago