Skip to main content
General information about the currently configured network. This response will contain all the information needed to successfully submit transactions to the network this node serves.

Params (0)

Result

(getNetworkResult)
string
required
Network passphrase configured for this Stellar RPC node.
number
required
Stellar Core protocol version associated with the latest ledger.
string
(optional) The URL of this network’s “friendbot” faucet

Examples

Example request to the getNetwork method for a node connected to the Stellar Testnet network.Request
Result

Using the Lab

You can check general information about the currently configured network on both Testnet and Mainnet using the getNetwork RPC method directly in the Stellar Laboratory. 👉 View Testnet getNetwork on the Lab Lab: getnetwork