GraphQL
GraphQL integration for querying indexed Gearbox protocol data.
This guide is coming soon. The GraphQL API is currently under development.
What to Expect
The GraphQL API will provide:
- Indexed market and pool data with historical snapshots
- Credit account state queries with filtering and pagination
- Event-based activity feeds (deposits, borrows, liquidations)
- Real-time subscriptions for position monitoring
In the Meantime
Use the TypeScript SDK for all integrations. It provides:
- Cached market data via
marketRegister - Real-time queries via Compressors (on-chain data aggregation contracts)
- Credit account indexing via
AccountsPlugin