TriportRPC

getNetwork

Stellar / https://triport.io/rpc/stellar

Minimum tier: Free

Stellar method guide

Last updated:

Returns the configured network passphrase and current protocol version. A friendbot URL is optional and normally relevant only outside production.

Use it to verify the intended network before hashing or signing transaction data. getVersionInfo describes software builds instead.

This catalog is read-only: the method describes the network but cannot submit an envelope.

Parameters

This method takes no parameters.

Returns

getNetwork return value
FieldType
getNetworkResultobject

Examples

curl https://triport.io/rpc/stellar \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getNetwork","params":[]}'
const res = await fetch("https://triport.io/rpc/stellar", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getNetwork",
  "params": []
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/stellar",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"getNetwork","params":[]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: Stellar.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does getNetwork do?
Returns network config through Stellar Soroban JSON-RPC.
How many credits does getNetwork cost?
getNetwork costs 1 credit(s) per call on Triport by default.
Is getNetwork available over WebSocket?
getNetwork is an HTTP JSON-RPC method.