Skip to main content

Discovering the Most Trusted Accounts

Learn how to leverage the Intuition GraphQL API to find and rank the ecosystem's most trusted accounts based on their positions, stakes, and activity patterns.

Understanding the Progression

  1. Get top 20 accounts ranked by total shares across all positions, showing the most trusted accounts based on cumulative stakes.
  2. Get detailed information for a given account including all positions and atoms created.
  3. Find top 20 individual positions by share amount, showing which accounts hold the largest single stakes.

Query

query GetTrustedAccounts($limit: Int = 20) {
  accounts(
    limit: $limit
    order_by: [{ positions_aggregate: { sum: { shares: desc } } }]
    where: {
      positions_aggregate: {
        count: { predicate: { _gt: 0 } }
      }
    }
  ) {
    id
    label
    image
    positions_aggregate {
      aggregate {
        count
        sum {
          shares
        }
      }
    }
    positions(
      limit: 10
      order_by: [{ shares: desc }]
    ) {
      id
      shares
      created_at
      vault {
        term_id
        current_share_price
        market_cap
        term {
          atom {
            term_id
            label
            image
          }
        }
      }
    }
  }
}

Variables

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