Account Queries
Query account information including profile data, social relationships (following), and positions from followed accounts.
Available Queriesβ
| Query | Description |
|---|---|
account | Query a single account by address |
accounts | Query multiple accounts with filtering |
following | Query following relationships |
positions_from_following | Query 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β
| Type | Description |
|---|---|
Default | Standard account with no linked atom |
AtomWallet | Account with a linked atom identity |
ProtocolVault | Protocol-controlled vault account |
Related Documentationβ
- Single Account - Query individual accounts
- List Accounts - Query multiple accounts
- Following - Social relationships
- Positions from Following - Social position data