getNetwork

General info about the currently configured network.

Allows you to directly inspect the current state of a contract, a contract's code, or any other ledger entry. This is a backup way to access your contract data which may not be available via events or simulateTransaction.

Reference: Here

Parameters:

none

Returned Value:

friendbotUrl (string) (optional) The URL of this network's "friendbot" faucet

passphrase (string) Network passphrase configured

protocolVersion (string) Protocol version of the latest ledger

{
  "jsonrpc": "2.0",
  "id": 8675309,
  "result": {
    "friendbotUrl": "https://friendbot.stellar.org/",
    "passphrase": "Test SDF Network ; September 2015",
    "protocolVersion": "20"
  }
}
curl https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
  "jsonrpc": "2.0",
  "id": 8675309,
  "method": "getNetwork"
}'

Last updated