Options
All
  • Public
  • Public/Protected
  • All
Menu
description

This class is used to initialize the software and provides general network and dApp configuration.

This class is injectable and provided by the AppModule through a call to the static AppModule.register helper method.

since

v0.1.0

Hierarchy

  • AppService

Index

Constructors

  • new AppService(configService: ConfigService<Record<string, unknown>, false>): AppService
  • Constructs an instance of the AppService that is used internally as the kernel of this software.

    The instance is built around the configuration files using nest's ConfigService.

    access

    public

    Parameters

    • configService: ConfigService<Record<string, unknown>, false>

      A nestjs ConfigService instance (automatically injected).

    Returns AppService

Properties

dappPublicAccount: PublicAccount

The currently configured dApp public account information that should (but not must) be available on the network.

We use this public information (a public key) to create user-friendly addresses that always start with a N.

access

protected

var

{PublicAccount}

epochAdjustment: number

The UTC-adjustment (in seconds) to add to block timestamps when formatting to UTC time.

This configuration field is network-wide and changing it may incur a change of connection or compatibility.

access

protected

var

{number}

generationHash: string

The blockchain network identifier. This field is used in relation with transaction signatures to identify a network and restricts the use of signed payloads.

This configuration field is network-wide and changing it may incur a change of connection or compatibility.

access

protected

var

{string}

networkType: number

The type of network that is used. Using dHealth, the type of network can be TESTNET or MAINNET, which respectively map to 152 and 104.

Note that changing this configuration field affects the dappPublicAccount property as well and may incur a change of connection or compatibility.

access

protected

var

{number}

Generated using TypeDoc