Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NetworkConfig

label

COMMON

interface

NetworkConfig

description

The dApp network configuration. This configuration object is used to determine communication, transport and network information.

link

NetworkConfig

since

v0.2.0

Hierarchy

  • NetworkConfig

Index

Properties

A list of operating network nodes that can be connected to. This configuration option uses the NodeConnectionPayload type and consists of an URL and an optional port that are used to establish the connection with the node.

Note that it is OK to use IP addresses rather than a domain name in this configuration option.

example

[ { "url": "http://dual-02.dhealth.cloud:3000", "port": 3000 } ]

access

public

var

{NodeConnectionPayload}

defaultNode: DefaultNodePayload

A default operation network node to connect to. This configuration option uses the DefaultNodePayload type and consists of an URL and a publicKey that are used to establish the connection and query info of the default node.

Note that it is OK to use IP addresses rather than a domain name in this configuration option.

example

"http://dual-02.dhealth.cloud:3000"

access

public

var

{DefaultNodePayload}

A network configuration object. This consists of parameters that are necessary to connect to operating nodes on dHealth Network. This configuration option uses the NetworkParameters type and consists of network connection parameters.

Important network connection parameters include the network type, which can be MAIN_NET (104) or TEST_NET (152), a network identifier that is used as a security against transaction replays, and some other network related fields like it's starting epoch (UTC timestamp).

CAUTION: By modifying the content of this configuration field, changes may occur for the dHealth Network connection and may thereby affect the data loaded by the backend runtime.

example

Example network configuration object for dHealth Network

{
namespaceName: "dhealth.dhp",
mosaicId: "39E0C49FA322A459",
namespaceId: "9D8930CDBB417337",
divisibility: 6,
networkIdentifier: 104,
epochAdjustment: 1616978397,
generationHash: "ED5761EA890A096C50D3F50B7C2F0CCB4B84AFC9EA870F381E84DDE36D04EF16"
}
access

public

var

{NetworkParameters}

Generated using TypeDoc