Skip to content

TokenId.from

Converts a token ID or address to a token ID.

TIP-20 is Tempo's native token standard for stablecoins with deterministic addresses derived from sequential token IDs (prefix 0x20c0).

TIP-20 Token Standard

Imports

Named
import { TokenId } from 'ox/tempo'

Examples

import { TokenId } from 'ox/tempo'
 
const tokenId = TokenId.from(1n)

Definition

function from(
  tokenIdOrAddress: TokenIdOrAddress | number,
): TokenId

Source: src/tempo/TokenId.ts

Parameters

tokenIdOrAddress

The token ID or address.

Return Type

The token ID.

TokenId