Skip to main content

Account Queries

Query account information including profile data, social relationships (following), and positions from followed accounts.

Available Queries​

QueryDescription
accountQuery a single account by address
accountsQuery multiple accounts with filtering
followingQuery following relationships
positions_from_followingQuery positions from followed accounts

What Are Accounts?​

Accounts represent Ethereum addresses that have interacted with the Intuition protocol. Each account includes:

  • Identity: Address, ENS name, and profile metadata
  • Labels: Human-readable names from atoms
  • Images: Profile pictures from atoms
  • Social Graph: Following relationships via triples
  • Positions: Stakes on atoms and triples

Quick Start​

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

const client = new GraphQLClient(API_URL_PROD)

// Get account details
const query = `
query GetAccount($id: String!) {
account(id: $id) {
id
label
image
type
atom_id
created_at
}
}
`

const data = await client.request(query, {
id: '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
})

Account Types​

TypeDescription
DefaultStandard account with no linked atom
AtomWalletAccount with a linked atom identity
ProtocolVaultProtocol-controlled vault account