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