GetNetworkResponse

@Serializable
data class GetNetworkResponse(val friendbotUrl: String? = null, val passphrase: String, val protocolVersion: Int)

Response for JSON-RPC method getNetwork.

Returns general information about the Stellar network this RPC server is connected to. This is useful for confirming network connectivity and obtaining network-specific configuration.

See also

Constructors

Link copied to clipboard
constructor(friendbotUrl: String? = null, passphrase: String, protocolVersion: Int)

Properties

Link copied to clipboard

URL of the Friendbot service for this network, if available. Friendbot is a testnet service that funds test accounts with test XLM. This will be null on public networks (mainnet) where no friendbot exists.

Link copied to clipboard

The network passphrase. This is a unique string identifier for the network (e.g., "Test SDF Network ; September 2015" for testnet or "Public Global Stellar Network ; September 2015" for mainnet). The passphrase is used in transaction signing to prevent replay attacks across different networks.

Link copied to clipboard

The current Stellar protocol version supported by the network.