Skip to main content

getNetwork RPC Method

Returns the information about the current configured network.

Updated on
Feb 21, 2024

getNetwork RPC Method

Parameters

This method does not accept any parameters

Returns

result
object
The result object which contains the following fields:
friendbotUrl
string
The URL of this network's friendbot faucet
passphrase
integer
The network passphrase configured
protocolVersion
integer
The protocol version of the latest ledger
Request
1
curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \
2
--header 'Content-Type: application/json' \
3
--data '{
4
"jsonrpc": "2.0",
5
"id": 8675309,
6
"method": "getNetwork"
7
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free