Class LedgerId

Represents the ID of a network.

Hierarchy

  • LedgerId

Properties

_ledgerId: Uint8Array
LOCAL_NODE: LedgerId
MAINNET: LedgerId
PREVIEWNET: LedgerId
TESTNET: LedgerId

Methods

  • If the ledger ID is a known value such as [0], [1], [2] this method will instead return "mainnet", "testnet", or "previewnet", otherwise it will hex encode the bytes.

    Returns string

  • Using the UTF-8 byte representation of "mainnet", "testnet", or "previewnet" is NOT supported.

    Parameters

    • bytes: Uint8Array

    Returns LedgerId

Generated using TypeDoc