parseGwei
Converts a string representation of gwei to numerical wei.
Import
ts
import { parseGwei } from 'viem/utils'
Usage
ts
import { parseGwei } from 'viem/utils'
parseGwei('420')
// 420000000000n
Returns
bigint
Parameters
value
- Type:
string
The string representation of gwei.