GET /v1/health

Liveness check. Verifies the API is up and that the TON RPC client can reach a recent block. Use it from your monitoring system.

Request

bash
curl https://chop.ag/api/v1/health

Response (200)

json
{
  "ok": true,
  "dexes": ["dedust", "stonfi"],
  "block": {
    "seqno": 65038583,
    "workchain": -1
  }
}

ok is true only when the v4 RPC client successfully retrieved a recent masterchain block. If the RPC is unreachable, the endpoint returns 503 with { ok: false, error: "..." }.

Fields

FieldTypeDescription
okbooleanTrue if the API can reach the TON network.
dexesstring[]Currently enabled DEX adapters.
block.seqnonumberLatest masterchain block seen by the API.
block.workchainnumberAlways -1 for the masterchain.