Skip to main content
Both sentiment queries return the same ChainHealthScore shape:
type ChainHealthScore {
  time: String!
  score: Int!             # 0-100 composite
  metrics: String         # JSON-encoded raw component metrics
  componentScores: String # JSON-encoded per-component 0-100 scores
}
metrics and componentScores are JSON-encoded strings — parse them on the client.

sentiment

Time series of chain sentiment scores over a rolling window.

Arguments

NameTypeRequiredDescription
hoursIntnoRolling window. Default 24, max 720.

Example

query { sentiment(hours: 24) { time score componentScores } }

latestSentiment

Most recent chain sentiment snapshot. Returns null before the first snapshot is computed.

Arguments

None.

Example

query { latestSentiment { time score metrics componentScores } }