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