416 B
416 B
description
| description |
|---|
| Converts numerical wei to a string representation of ether. |
formatEther
Converts numerical wei to a string representation of ether.
Import
import { formatEther } from 'viem'
Usage
import { formatEther } from 'viem'
formatEther(1000000000000000000n) // [!code focus:2]
// '1'
Returns
string
Parameters
value
- Type:
bigint
The wei value.