> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raze.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Sentiment

> Chain-level health score time series and latest snapshot

Both sentiment queries return the same `ChainHealthScore` shape:

```graphql theme={null}
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

| Name    | Type  | Required | Description                              |
| ------- | ----- | -------- | ---------------------------------------- |
| `hours` | `Int` | no       | Rolling window. Default `24`, max `720`. |

### Example

```graphql theme={null}
query { sentiment(hours: 24) { time score componentScores } }
```

***

## `latestSentiment`

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

### Arguments

None.

### Example

```graphql theme={null}
query { latestSentiment { time score metrics componentScores } }
```
