Docs · Developers

Public API and indexer

The same data as JSON, or as GraphQL from the Envio indexer.

In one line

The data behind Tare, as JSON, for anyone to read. No key, no sign-up.

Start here

Requestv1
curl https://api.tarefi.xyz/

GET / at api.tarefi.xyz lists every route below. Everything is read-only and open to any website.

Routes

GET/v1/health

Is the backend running, and when did each watched vault last get a verdict.

GET/v1/pools

Every pool Tare tracks, with its verdict.

GET/v1/pools/{poolId}

One pool and its verdict.

GET/v1/verdicts?network={testnet|mainnet}

The Verdict Ledger: every verdict posted onchain and how it was graded.

GET/v1/vaults/{network}/{vault}/latest

The newest verdict for one vault.

GET/v1/events/{network}/{owner}?since={iso}

The Watch feed for one wallet.

GET/v1/ledger/score?network={testnet|mainnet}

The scoreboard: Brier score and hit rates.

Also public

What Jev saw
https://ledger.tarefi.xyz/state/{stateHash}.json

The Envio indexer

Tare's own events and the watched vaults' deposits and withdrawals are indexed on both networks with Envio HyperIndex, into one GraphQL schema. Ids start with the chain id (143 mainnet, 10143 testnet) and addresses are lowercase.

Verdict
Every oracle post with its grade, linked to the exits it caused.
Protection
Each wallet’s Guardian rule per vault, on or off.
Exit
Every Guardian exit: who, how much, which verdict, who called it.
VaultFlowHour
Deposits, withdrawals and the largest withdrawal per vault per hour. Jev is shown these.
LargeWithdrawal
Single withdrawals of at least 1% of a vault.
GraphQL · latest verdicts on a vault
query {
  Verdict(where: { chainId: { _eq: 143 }, vault: { _eq: "0xe1bca19baa63894d374578320551633320436523" } },
          order_by: { postId: desc }, limit: 5) {
    postId verdict confidenceBps resolved adverse reasons txHash
    exits { owner assets remainingShares txHash }
  }
}

Run it yourself with pnpm -C indexer dev (GraphQL at localhost:8080/v1/graphql). The schema is in indexer/schema.graphql.

Every signature, response shape and query in one file: docs/developers.md on GitHub.