Class MoneroNetworkType

Defines the Monero network types (mainnet, testnet, and stagenet).

Hierarchy

  • MoneroNetworkType

Constructors

Properties

MAINNET: 0 = 0

Mainnet (value=0).

STAGENET: 2 = 2

Stagnet (value=2).

TESTNET: 1 = 1

Testnet (value=1).

Methods

  • Indicates if the given network type is valid or not.

    Parameters

    • networkType: string | number | MoneroNetworkType

      the network type to validate as a numeric

    Returns boolean

    true if the network type is valid, false otherwise

  • Parse the given string as a network type.

    Parameters

    • networkTypeStr: string

      "mainnet", "testnet", or "stagenet" (case insensitive)

    Returns MoneroNetworkType

    the network type as a numeric

  • Get the network type in human-readable form.

    Parameters

    Returns string

    the network type in human-readable form

  • Validate the given network type.

    Parameters

    • networkType: string | number | MoneroNetworkType

      the network type to validate as a numeric

    Returns void

Generated using TypeDoc