Skip to main content
You're reading the V1 docs. They cover the first generation of Intuition: the intuition-ts packages and the intuition-rs services. New development happens in V2. Open the V2 docs
Version: V1

Example: Activity Feed

Build an activity feed showing recent protocol activity.

Query​

Query

query GetRecentActivity($limit: Int!) {
  deposits(
    order_by: { created_at: desc }
    limit: $limit
  ) {
    id
    sender_id
    assets_after_fees
    created_at
    vault {
      term {
        atom { label }
      }
    }
  }
  redemptions(
    order_by: { created_at: desc }
    limit: $limit
  ) {
    id
    receiver_id
    assets
    created_at
  }
}

Variables

Click "Run Query" to execute the GraphQL query and see results