Constructor
new Network(networkPassphrase)
Parameters:
Name | Type | Description |
---|---|---|
networkPassphrase |
string
|
Network passphrase |
Methods
(static) use(network)
Use network defined by Network object.
Parameters:
Name | Type | Description |
---|---|---|
network |
Network
|
Network to use |
(static) usePublicNetwork()
Use DigitalBits Public Network
(static) useTestNetwork()
Use test network.
networkId() → {string}
Returns Network ID. Network ID is SHA-256 hash of network passphrase.
Returns:
- Type:
-
string
networkPassphrase() → {string}
Returns network passphrase.
Returns:
- Type:
-
string