Skip to content

VirtualAddress.isVirtual

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

TIP-1022

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

Imports

Named
import { VirtualAddress } from 'ox/tempo'

Examples

import { VirtualAddress } from 'ox/tempo'
 
const isVirtual = VirtualAddress.isVirtual(
  '0x58e21090fdfdfdfdfdfdfdfdfdfd010203040506',
)
 
isVirtual
true

Definition

function isVirtual(
  address: string,
): boolean

Source: src/tempo/VirtualAddress.ts

Parameters

address

  • Type: string

Address to check.

Return Type

true if the address matches the virtual-address layout.

boolean