TRENDDocs

Health and chain

GET
/healthz

Liveness. cluster names the chain this API reads: localnet is our dev validator, not mainnet.

Response Body

OK

application/json
  1. response
ok*true
Value intrue
cluster*string

Which chain this API reads: localnet is our dev validator.

programId*string

The launch program id this API is configured for.

stream*
cache?unknown
bus?unknown
curl -X GET 'https://api.dev.trend.fun/healthz'
{  "ok": true,  "cluster": "localnet",  "programId": "G5VTggvWQRn9skJJ1YrDfPvpprVZYdhkUgCRxwpfcokz",  "stream": {    "resyncs": 0,    "clients": 2,    "devices": 2,    "ips": 1,    "anonymous": 0,    "busiestIp": 2,    "busiestDevice": 1,    "caps": {      "clients": 2000,      "perIp": 24,      "perDevice": 6,      "cardSubs": 100,      "uncappedIps": 0,      "service": {        "anonPerAddress": 24,        "perUser": 8,        "addressCeiling": 48      },      "maxFrameBytes": 65536,      "framesPer10s": 20    },    "uncappedSockets": 0,    "rejected": {      "capacity": 0,      "ip": 0,      "device": 0,      "service": 0,      "frames": 0    },    "subscriptions": {      "scoped": 2,      "broadcast": 0,      "cardSubs": 0,      "busiestCardSubs": 0,      "liveSubs": 0,      "launchesTopicSubs": 0    },    "sent": {      "bytes": {        "hello": 123,        "ping": 16252,        "prices": 65968,        "blockhash": 0,        "cards": 0,        "cards_snapshot": 0,        "trade": 0,        "status": 0,        "migration": 0,        "collectible": 0,        "launch": 0,        "discovery": 0,        "suback": 0,        "rate": 0,        "resync": 0,        "other": 0      },      "frames": {        "hello": 3,        "ping": 478,        "prices": 112,        "blockhash": 0,        "cards": 0,        "cards_snapshot": 0,        "trade": 0,        "status": 0,        "migration": 0,        "collectible": 0,        "launch": 0,        "discovery": 0,        "suback": 0,        "rate": 0,        "resync": 0,        "other": 0      },      "busiestSocketBytesPerS": 0    }  },  "cache": {    "shared": true,    "up": true,    "trips": 0,    "failures": 0,    "fallbackKeys": 0  },  "bus": {    "subscriber": {      "connected": true,      "reconnects": 0,      "lastMissedMs": 0    },    "publisher": {      "up": true,      "trips": 0,      "failures": 0,      "lastError": null,      "dropped": 0    }  }}