Skip to main content
The ChainLens API is a Fastify service. By default it listens on http://127.0.0.1:8787.

Health

Returns provider health information for every supported chain. Results are cached briefly to avoid probing upstream providers on every request.

Example response

Resolve a pair

Resolves a pool or token address into pair metadata.

Query parameters

Response fields

Invalid chains or invalid addresses return a 400 response.

Fetch events

Fetches events for the resolved pair, applies view filters, and returns summary metrics and leaderboards.

Query parameters

Custom ranges require both from and to. The maximum window is 7 days.

Example request

This returns buy and sell events with USD value at or above 1000, sorted by USD value.

Example custom range

Response shape

The events array is capped to the first 250 matching events.

Activity event shape

Common error responses