> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://v3.viem.sh/api/mcp` to find what you need.

# Address.isEqual

:::info
`Address.isEqual` is a re-export of ox's [`Address.isEqual`](https://oxlib.sh/api/Address/isEqual). Refer to the ox documentation for the full reference.
:::

Checks if two [`Address.Address`](/docs/utilities/address/types#address) are equal.

## Imports

```ts
import { Address } from 'viem/utils'
```

## Examples

```ts twoslash
// @noErrors
import { Address } from 'viem/utils'

Address.isEqual(
  '0xa0cf798816d4b9b9866b5330eea46a18382f251e',
  '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
)
// @log: true
```

```ts twoslash
// @noErrors
import { Address } from 'viem/utils'

Address.isEqual(
  '0xa0cf798816d4b9b9866b5330eea46a18382f251e',
  '0xA0Cf798816D4b9b9866b5330EEa46a18382f251f'
)
// @log: false
```

## Definition

```ts
function isEqual(
  addressA: Address,
  addressB: Address,
): boolean
```

## Parameters

### addressA

* **Type:** `Address`

The first address to compare.

### addressB

* **Type:** `Address`

The second address to compare.

## Return Type

Whether the addresses are equal.

`boolean`
