Skip to content

Earner rate history

This query will return snapshots of the $M earner rate

query EarnerRateSnapshotsQuery {
  rates: mToken_latestRateSnapshots(
    orderDirection: desc
    orderBy: timestamp
    first: 4
  ) {
    value
    timestamp
  }
}

Example output:

{
  "data": {
    "rates": [
      {
        "value": "407",
        "timestamp": "1747235135"
      },
      {
        "value": "415",
        "timestamp": "1747223375"
      },
      {
        "value": "415",
        "timestamp": "1747221779"
      },
      {
        "value": "415",
        "timestamp": "1747215359"
      }
    ]
  }
}