TriportRPC

getHealth

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

Minimum tier: Free

Stellar method guide

Last updated:

Reports node health plus its newest ledger, oldest retained ledger, and configured retention window.

Use it for readiness checks and to choose a valid starting ledger for history methods. getLatestLedger instead focuses on ledger header data.

Both measured Soroban nodes reported a 120,960-ledger window; boundaries remain properties of the selected node.

Parameters

This method takes no parameters.

Returns

getHealth return value
FieldType
getHealthResultobject

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":"getHealth","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": "getHealth",
  "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":"getHealth","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 getHealth do?
Returns node health through Stellar Soroban JSON-RPC.
How many credits does getHealth cost?
getHealth costs 1 credit(s) per call on Triport by default.
Is getHealth available over WebSocket?
getHealth is an HTTP JSON-RPC method.