API of Metric ‘Token Age Consumed’ | Santiment Knowledge Base

Santiment Team

Fetch Token Age Consumed for a project within a given time period, grouped by interval. Projects are referred to by a unique identifier (slug).

Each transaction has an equivalent token age record. The token age is calculated by multiplying the number of tokens moved by the number of blocks in which they appeared. Spikes in Token Age Consumed could indicate large transactions or movement of tokens that have been held for a long time.

Grouping by interval works by summing all burn rate records in the interval.

Run in explorer

{
  tokenAgeConsumed(from: "2019-04-12T09:45:27.283Z", interval: "1d", slug: "dragonchain", to: "2019-05-26T09:45:27.283Z") {
    tokenAgeConsumed
    datetime
  }
}

Run in terminal

curl \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "query": "query{tokenAgeConsumed(from:\"2019-04-12T09:45:27.283Z\",interval:\"1d\",slug:\"dragonchain\",to:\"2019-05-26T09:45:27.283Z\"){tokenAgeConsumed,datetime}}" }' \
  https://api.santiment.net/graphql