Skip to content

TempoAddress.validate

Validates a Tempo address string.

Imports

Named
import { TempoAddress } from 'ox/tempo'

Examples

import { TempoAddress } from 'ox/tempo'
 
const valid = TempoAddress.validate(
  'tempox0x742d35cc6634c0532925a3b844bc9e7595f2bd28',
)
true

Definition

function validate(
  tempoAddress: string,
): boolean

Source: src/tempo/TempoAddress.ts

Parameters

tempoAddress

  • Type: string

The Tempo address string to validate.

Return Type

Whether the address is valid.

boolean