getAddress
Converts an address to an address that is checksum encoded.
Import
ts
import { getAddress } from 'viem/utils'
Usage
ts
import { getAddress } from 'viem/utils'
getAddress('0xa5cc3c03994db5b0d9a5eEdD10Cabab0813678ac')
// '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC'
Returns
string
The checksummed address.
Parameters
address
- Type:
Address
An Ethereum address.