Question · Blockchain and Web3 course · Module 4: ethers.js & viem
parseEther
What is the ethers.parseEther() function used for?
Answer options
- Converts ETH to USD
- Converts a string with an ETH value to wei (BigInt)
- Parses Ethereum transactions
- Validates Ethereum addresses
You can check the correct answer by solving this task in the CodeWorlds game.