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