---
title: Atom with Vault
description: Fetch atom details with vault statistics
url: https://docs.intuition.systems/docs/v1/graphql-api/examples/atom-with-vault
markdown_url: https://docs.intuition.systems/docs/v1/graphql-api/examples/atom-with-vault.md
version: V1
llms_index: https://docs.intuition.systems/docs/v1/llms.txt
---

Fetch atom metadata along with vault statistics.

## Use Case

Display atom information with market data on a detail page.

## Query

    id: 'atom-with-vault',
    title: 'Atom with Vault Info',
    query: `query GetAtomWithVault($atomId: String!, $curveId: numeric!) {
  atom(term_id: $atomId) {
    term_id
    label
    image
    type
    created_at
    creator {
      id
      label

    term {
      vaults(where: { curve_id: { _eq: $curveId } }) {
        curve_id
        total_shares
        total_assets
        current_share_price
        market_cap
        position_count

}`,
    variables: {
      atomId: '0x906527aae4af914b1ac01ff9adfdda5dafde3b5e21f84045e0660b0a15c07769',
      curveId: '1'

];

## Implementation

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

const client = new GraphQLClient(API_URL_PROD)

const query = `
  query GetAtomWithVault($atomId: String!, $curveId: numeric!) {
    atom(term_id: $atomId) {
      term_id
      label
      image
      term {
        vaults(where: { curve_id: { _eq: $curveId } }) {
          total_shares
          market_cap
          position_count
        }
      }
    }
  }
`

const data = await client.request(query, {
  atomId: '0x...',
  curveId: '1'
})
```
