Skip to content

isAddressEqual

Checks if the given addresses (checksummed) are equal.

Import

import { isAddressEqual } from 'viem'

Usage

import { isAddressEqual } from 'viem'
 
isAddressEqual('0xa5cc3c03994db5b0d9a5eEdD10Cabab0813678ac', '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC') 
// true

Returns

boolean

Whether or not the addresses are equal.