Package org.stellar.sdk
Class Network
java.lang.Object
org.stellar.sdk.Network
Network class is used to specify which Stellar network you want to use. Each network has a
networkPassphrase
which is hashed to every transaction id.-
Field Details
-
PUBLIC
-
TESTNET
-
FUTURENET
-
STANDALONE
-
SANDBOX
-
-
Constructor Details
-
Network
Creates a new Network object to represent a network with a given passphrase- Parameters:
networkPassphrase
- The network passphrase
-
-
Method Details
-
getNetworkId
public byte[] getNetworkId()Returns network id (SHA-256 hashednetworkPassphrase
).- Returns:
- network id
-
toString
-
getNetworkPassphrase
The network passphrase -
equals
-
hashCode
public int hashCode()
-