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/json

Reads 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 }
    }
  }
}

Try in Apollo Sandbox →

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.

Where to go next

Last updated