Network

data class Network(val networkPassphrase: String)

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.

See also

Constructors

Link copied to clipboard
constructor(networkPassphrase: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The network passphrase

Functions

Link copied to clipboard
suspend fun networkId(): ByteArray

Returns network id (SHA-256 hashed networkPassphrase).

Link copied to clipboard
open override fun toString(): String