API Reference
Base URL
https://api.varla.xyz/v1 REST Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /pool | Pool snapshot: utilization, APYs, total assets, reserves |
GET | /pool/history | Historical pool metrics (utilization, rates over time) |
GET | /accounts/:address | Account snapshot: collateral, debt, health factor |
GET | /accounts/:address/positions | All deposited positions for an account |
GET | /markets | All supported markets with current prices and risk tiers |
GET | /markets/:tokenId | Specific market details, price, LTV, volume |
GET | /liquidations | Recent liquidation events with bonus and amounts |
GraphQL
Example query graphql
query {
pool {
totalAssets
utilization
borrowAPY
supplyAPY
reserveBalance
}
account(address: "0x...") {
healthFactor
totalDebt
positions {
tokenId
amount
value
riskTier
}
}
} ℹ GraphQL endpoint
POST https://api.varla.xyz/v1/graphql — full introspection available. See GraphQL Getting Started for setup and authentication.