# VirtualAddress.isVirtual

Checks whether an address matches the TIP-1022 virtual address format.

[TIP-1022](https://docs.tempo.xyz/protocol/tips/tip-1022)

This only checks the reserved byte layout, not whether the `masterId` is registered onchain.

## Imports

:::code-group
```ts [Named]
import { VirtualAddress } from 'ox/tempo'
```

```ts [Entrypoint]
import * as VirtualAddress from 'ox/tempo/VirtualAddress'
```
:::

## Examples

```ts twoslash
import { VirtualAddress } from 'ox/tempo'

const isVirtual = VirtualAddress.isVirtual(
  '0x58e21090fdfdfdfdfdfdfdfdfdfd010203040506'
)

isVirtual
// @log: true
```

## Definition

```ts
function isVirtual(
  address: string,
): boolean
```

**Source:** [src/tempo/VirtualAddress.ts](https://github.com/wevm/ox/blob/main/src/tempo/VirtualAddress.ts#L207)

## Parameters

### address

* **Type:** `string`

Address to check.

## Return Type

`true` if the address matches the virtual-address layout.

`boolean`
