Web3JS Online
Viem Online
Webhooks, Alerts, and a simple API.
The fromWei function takes a number of wei number and converts it to any other ether unit unit, as specified by the user. The function is a part of the web3-utils library and is designed to be used with the Ethereum blockchain.
The function returns a string representing the converted value in the given unit. This string can be used in a variety of contexts, such as in smart contracts, hash functions, and other cryptographic applications.
Here are some examples of how the fromWei function can be used:
In the first example, the function takes a value of 1 wei and converts it to ether, resulting in a value of 0.000000000000000001. In the second example, the function takes a value of 1 wei and converts it to shannon, resulting in a value of 0.000000001.