GraphQL API
ℹ Coming Soon
The GraphQL API is under development. In the meantime, use the TypeScript SDK for all data queries — it provides the same data with chain-aware addresses and typed responses.
What Will Be Available
- Pool data — utilization, rates, TVL, caps
- User positions — collateral, debt, health factor
- Oracle data — prices, staleness, risk tiers
- Historical data — rate history, liquidation events
Current Alternative
Use the SDK instead ts
import * as views from "@varla/sdk/views";
// Pool snapshot (equivalent to a pool query)
const pool = await views.readPoolSnapshot({ client, pool: poolAddress });
// User account (equivalent to a user query)
const account = await views.readAccountSnapshot({ client, core, user });
// Oracle data (equivalent to a position query)
const pos = await views.readPositionSnapshot({ client, oracle, positionId });