@hashgraph/sdk
    Preparing search index...

    Class LedgerId

    Represents the ID of a network.

    Index

    Properties

    _ledgerId: Uint8Array<ArrayBufferLike>
    LOCAL_NODE: LedgerId
    MAINNET: LedgerId
    PREVIEWNET: LedgerId
    TESTNET: LedgerId

    Methods

    • Returns Uint8Array<ArrayBufferLike>

    • 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<ArrayBufferLike>

      Returns LedgerId