Categories
Cryptocurrency Ethereum Mastering Development

How to safely manage WEI units?

I’m confused about how to manage/calculate with WEI in a web3 application. So far I found: BigInt: This is JS native and it works with large quantities (e.g. 10000000000000000000000). But it doesn’t have out of the box utilities like e.g. converting to hex. BigNumer: This is provided by ethers: Many operations in Ethereum operation on […]