isAddress
Checks if the address is valid.
Import
ts
import { isAddress } from 'viem/utils'
Usage
ts
import { isAddress } from 'viem/utils'
isAddress('0xa5cc3c03994db5b0d9a5eEdD10Cabab0813678ac')
// true
Returns
boolean
Whether or not the address is valid.
Parameters
address
- Type:
Address
An Ethereum address.