---
title: Events Queries
description: Query raw blockchain events from the Intuition protocol
url: https://docs.intuition.systems/docs/v1/graphql-api/queries/events/overview
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/queries/events/overview.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Query raw blockchain events emitted by the Intuition protocol contracts. Events provide low-level access to all protocol interactions.

## Available Queries

| Query | Description |
|-------|-------------|
| [`events`](https://docs.intuition.systems/docs/v1/graphql-api/queries/events/list-events) | Query events with filtering and pagination |
| [`events_aggregate`](https://docs.intuition.systems/docs/v1/graphql-api/queries/events/aggregate-events) | Aggregate statistics for events |

## What Are Events?

Events are blockchain log entries emitted by smart contracts. The Intuition indexer captures:

- **AtomCreated**: New atoms minted
- **TripleCreated**: New triples created
- **Deposited**: TRUST staked on positions
- **Redeemed**: TRUST withdrawn from positions
- **FeesTransferred**: Protocol fees collected

## Quick Start

```typescript
import { GraphQLClient } from 'graphql-request'
import { API_URL_PROD } from '@0xintuition/graphql'

const client = new GraphQLClient(API_URL_PROD)

// Get recent events
const query = `
  query GetEvents($limit: Int!) {
    events(
      order_by: { block_number: desc }
      limit: $limit
    ) {
      id
      type
      block_number
      created_at
      transaction_hash
    }
  }
`

const data = await client.request(query, { limit: 20 })
```

## Event Types

| Type | Description |
|------|-------------|
| `AtomCreated` | Atom minted on-chain |
| `TripleCreated` | Triple created |
| `Deposited` | Stake deposited |
| `Redeemed` | Stake withdrawn |
| `FeesTransferred` | Fees sent to protocol |

## Events vs Signals

| Aspect | Events | Signals |
|--------|--------|---------|
| Level | Raw blockchain logs | Enriched data |
| Context | Minimal | Full account/atom details |
| Use case | Analytics, debugging | User-facing features |

## Related Documentation

- [List Events](https://docs.intuition.systems/docs/v1/graphql-api/queries/events/list-events) - Query events with filters
- [Aggregate Events](https://docs.intuition.systems/docs/v1/graphql-api/queries/events/aggregate-events) - Event statistics
- [Signals](https://docs.intuition.systems/docs/v1/graphql-api/queries/signals/overview) - Enriched event data
