new Network(networkPassphrase)
The Network class provides helper methods to get the passphrase or id for different stellar networks. It also provides the Network.current class method that returns the network that will be used by this process for the purposes of generating signatures.
The test network is the default, but you can also override the default by using the use,
usePublicNetwork and useTestNetwork helper methods.
Creates a new Network object.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
networkPassphrase |
string
|
Network passphrase |