getNetwork

Fetches metadata about the network.

Returns network information including passphrase, protocol version, and friendbot URL. Essential for verifying you're connected to the correct network.

Example

val network = server.getNetwork()
println("Network: ${network.passphrase}")
println("Protocol: ${network.protocolVersion}")

Return

Network metadata including passphrase and protocol version

See also

Throws

If the RPC request fails