Get EL mesh aggregate health
https://api.triport.io/v1/eth/leak-mesh/healthReturns aggregate health and capacity metrics for the Ethereum execution-layer (EL) leak-mesh as a single rolled-up snapshot.
GET /v1/eth/leak-mesh/health returns a single aggregate view of the Ethereum
execution-layer leak-mesh: how many EL hosts back the mesh, how many of them are
currently healthy, the combined sustained request ceiling, and the per-host RPS
distribution (p50 / p95). It takes no parameters and returns one flat JSON
object.
Use it as a lightweight capacity and liveness probe before fanning out traffic
across the mesh. A healthy_count well below host_count, or a sharp drop in
aggregate_rps_ceiling, is an early signal that the mesh is degraded and you
should throttle or back off. The p50_host_rps / p95_host_rps pair lets you
reason about how evenly load can be spread: a wide gap between them means a few
hosts are carrying disproportionately more capacity than the median.
For the per-host breakdown behind these aggregates, see leak-mesh-hosts. To route a one-shot JSON-RPC call through a specific host, see leak-mesh-proxy (Pro+).
Parameters
This endpoint takes no path, query, or body parameters.
_(none)_—optionalResponse
Response fields
| Field | Type | Description |
|---|---|---|
host_count | integer | Total number of EL hosts registered in the leak-mesh. |
healthy_count | integer | Number of those hosts currently passing health checks. |
aggregate_rps_ceiling | integer | Combined sustained request-per-second ceiling across all healthy hosts. |
p50_host_rps | number (double) | Median per-host RPS ceiling. |
p95_host_rps | number (double) | 95th-percentile per-host RPS ceiling. |
Errors
| Code | Meaning | When it happens |
|---|---|---|
401 | unauthorized / trial_expired / subscription_expired | Missing or invalid credentials, or the account's trial/subscription has lapsed. |
403 | tier_insufficient / method_unknown | The API key's tier is below basic, or the method is not part of the current product. |
429 | rate_limited | The per-tier RPS limit for the eth_leak_mesh category was exceeded. Honor Retry-After and back off. |
All error bodies use the shared envelope (error, message, request_id).
See errors.md for the full envelope and handling guidance.
Examples
JavaScript (fetch)
const res = await fetch("https://api.triport.io/v1/eth/leak-mesh/health", {
headers: {
"Authorization": `Bearer ${process.env.TRIPORT_API_KEY}`,
},
});
if (!res.ok) {
const err = await res.json();
throw new Error(`${res.status} ${err.error}: ${err.message}`);
}
const health = await res.json();
console.log(`${health.healthy_count}/${health.host_count} hosts healthy`);
console.log(`aggregate ceiling: ${health.aggregate_rps_ceiling} RPS`);TypeScript SDK (@triport/sdk)
import { Triport } from "@triport/sdk";
const client = new Triport({ apiKey: process.env.TRIPORT_API_KEY! });
interface LeakMeshHealth {
host_count: number;
healthy_count: number;
aggregate_rps_ceiling: number;
p50_host_rps: number;
p95_host_rps: number;
}
const health = await client.eth.get<LeakMeshHealth>("/v1/eth/leak-mesh/health");
console.log(`${health.healthy_count}/${health.host_count} hosts healthy`);Python (triport-sdk)
import os
from triport import Triport
client = Triport(api_key=os.environ["TRIPORT_API_KEY"])
health = client.eth.get("/v1/eth/leak-mesh/health")
print(f"{health['healthy_count']}/{health['host_count']} hosts healthy")
print(f"aggregate ceiling: {health['aggregate_rps_ceiling']} RPS")Notes
- The endpoint requires the basic tier or higher (
eth_leak_meshcategory). - Rate limiting is RPS-per-tier with burst; there is no daily quota. A
429 rate_limitedresponse means you should honorRetry-Afterand retry shortly. - This is a read-only aggregate. For the underlying per-host list (status, sync-state, block-height) use leak-mesh-hosts; to send a JSON-RPC call through a chosen host use leak-mesh-proxy.