parseEther
Converts a string representation of ether to numerical wei.
Import
import { parseEther } from 'viem'Usage
import { parseEther } from 'viem'
parseEther('420')
// 420000000000000000000nReturns
bigint
Parameters
value
- Type:
string
The string representation of ether.