Skip to content

TempoAddress.resolve

Resolves an address input (either an Ethereum hex address or a Tempo address) to an Ethereum hex address.

Imports

Named
import { TempoAddress } from 'ox/tempo'

Examples

import { TempoAddress } from 'ox/tempo'
 
const address = TempoAddress.resolve('tempox0x742d35cc6634c0532925a3b844bc9e7595f2bd28')
'0x742d35CC6634c0532925a3B844bc9e7595F2Bd28'

Hex Address Passthrough

import { TempoAddress } from 'ox/tempo'
 
const address = TempoAddress.resolve('0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28')
'0x742d35CC6634c0532925a3B844bc9e7595F2Bd28'

Definition

function resolve(
  address: Address,
): core.Address.Address

Source: src/tempo/TempoAddress.ts

Parameters

address

  • Type: Address

An Ethereum hex address or Tempo address.

Return Type

The resolved Ethereum hex address.

core.Address.Address