Skip to main content

getNetwork

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)
passphrase
string
required

Network passphrase configured for this Soroban RPC node.

protocolVersion
number
required

Stellar Core protocol version associated with the latest ledger.

friendbotUrl
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

curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 8675309,
"method": "getNetwork"
}' \
https://soroban-testnet.stellar.org | jq

Result

{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"friendbotUrl": "https://friendbot-testnet.stellar.org/",
"passphrase": "Test SDF Network ; September 2015",
"protocolVersion": 20
}
}