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.
You should select network your app will use before adding the first signature. You can use the use,
usePublicNetwork and useTestNetwork helper methods.
Creates a new Network object.
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
networkPassphrase |
string
|
Network passphrase |