Represents a Symbol network.

Hierarchy

  • Network<any, any>
    • Network

Constructors

  • Creates a new network with the specified name, identifier byte and generation hash seed.

    Parameters

    • name: string

      Network name.

    • identifier: number

      Network identifier byte.

    • epochTime: Date

      Network epoch time.

    • generationHashSeed: Hash256

      Network generation hash seed.

    Returns Network

Properties

datetimeConverter: NetworkTimestampDatetimeConverter

Network timestamp datetime converter associated with this network.

generationHashSeed: Hash256

Network generation hash seed.

identifier: number

Network identifier byte.

name: string

Network name.

MAINNET: Network

Symbol main network.

NETWORKS: Network[]

Symbol well known networks.

TESTNET: Network

Symbol test network.

Methods

  • Converts a datetime to a network timestamp.

    Parameters

    • referenceDatetime: Date

      Reference datetime to convert.

    Returns any

    Network timestamp representation of the reference datetime.

  • Checks if an address is valid and belongs to this network.

    Parameters

    • address: any

      Address to check.

    Returns boolean

    \c true if address is valid and belongs to this network.

  • Checks if an address string is valid and belongs to this network.

    Parameters

    • addressString: string

      Address to check.

    Returns boolean

    \c true if address is valid and belongs to this network.

  • Converts a public key to an address.

    Parameters

    Returns any

    Address corresponding to the public key input.

  • Converts a network timestamp to a datetime.

    Parameters

    • referenceNetworkTimestamp: any

      Reference network timestamp to convert.

    Returns Date

    Datetime representation of the reference network timestamp.

  • Returns string representation of this object.

    Returns string

    String representation of this object