Lagoon API
Off-chain GraphQL API exposing vault state, user positions, and event history across all supported chains.
The Lagoon API is a single multi-chain GraphQL endpoint that returns indexed vault data — current state, historical state, user positions, the full event stream, and reference data such as chains, assets, curators, and integrators.
POST https://api.lagoon.finance/query
Content-Type: application/jsonReads are public; no API key is required.
Quickstart
Confirm connectivity and check indexing health for every chain in one call:
{
_meta {
lastIndexedBlocks {
chainId
number
hash
chain { name }
}
}
}Same query as a curl call:
_meta.lastIndexedBlocks returns the most recent tracked block per chain. An hourly health-check event guarantees the value advances at least once per hour even on quiet chains — if a chain is more than ~1 hour behind, the indexer is lagging.
Open https://api.lagoon.finance/query in a browser to launch Apollo Sandbox, an interactive schema explorer. Introspection is enabled, so the full schema (types, fields, descriptions) is browsable without any client setup — Sandbox is the authoritative reference for every field name in this documentation. Throughout these docs, "Try in Apollo Sandbox" links open Sandbox with the example query already populated in the Operation panel.
Where to go next
Last updated