For the complete documentation index, see llms.txt. This page is also available as Markdown.

On-Chain Oracle

The on-chain oracle API provides access to EAS attestation records. All endpoints are public.


Endpoints

Method
Path
Description

GET

/api/bv7x/onchain-oracle/latest

Most recent attestation

GET

/api/bv7x/onchain-oracle/history

Full attestation history

GET

/api/bv7x/onchain-oracle/verify/:uid

Verify a specific attestation by UID

GET

/api/bv7x/onchain-oracle/stats

Attestation statistics

Authentication: None (all public)


GET /api/bv7x/onchain-oracle/latest

Returns the most recent prediction attestation.

{
  "uid": "0xabc123...",
  "date": "2026-03-28",
  "signal": "SELL",
  "direction": "DOWN",
  "confidence": 0.615,
  "btcPrice": 66027,
  "modelVersion": "5.6.7",
  "txHash": "0xdef456...",
  "timestamp": "2026-03-28T21:38:00Z",
  "type": "prediction"
}

GET /api/bv7x/onchain-oracle/history

Returns all attestations ordered by date (newest first).

Attestations have two types:

  • prediction -- created at signal time (before outcome is known)

  • resolution -- created when the 7-day outcome resolves


GET /api/bv7x/onchain-oracle/verify/:uid

Verify a single attestation by its UID. Returns the full attestation data plus on-chain verification status.


GET /api/bv7x/onchain-oracle/stats

Aggregate statistics across all attestations.


Next

Last updated