VirtualAddress.isVirtual
Checks whether an address matches the TIP-1022 virtual address format.
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
trueDefinition
function isVirtual(
address: string,
): booleanSource: src/tempo/VirtualAddress.ts
Parameters
address
- Type:
string
Address to check.
Return Type
true if the address matches the virtual-address layout.
boolean

