Skip to content
On this page

isAddressEqual

Checks if the given addresses (checksummed) are equal.

Import

ts
import { isAddressEqual } from 'viem/utils'

Usage

ts
import { isAddressEqual } from 'viem/utils'

isAddressEqual('0xa5cc3c03994db5b0d9a5eEdD10Cabab0813678ac', '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC') 
// true

Returns

boolean

Whether or not the addresses are equal.

Released under the MIT License.