Oracle prices

Reference prices and signed oracle payloads (BCH Schnorr) for oracle-priced pools.

Endpoint Returns
GET /api/v1/oracle/prices Latest reference prices for configured pairs
GET /api/v1/oracle/pairs Configured pairs, with source and, for Cauldron pairs, the reference pool
GET /api/v1/oracle/payload?pair=<name> A signed price message for covenant verification

Sources, as reported in each price's source field:

Prices older than ORACLE_MAX_AGE_SEC are treated as stale and not signed.

Warning: > No live Mesh pool consumes these payloads yet. See Oracle strategies for the status.

Payload

16 bytes, all little-endian:

Bytes Field
0–3 timestamp (unix seconds, uint32)
4–7 pair id (uint32): 1 BCH_USD · 2 USDC_USD · 3 USDT_USD · 4 pUSD · 5 mUSD
8–15 price × 10⁸ (uint64)

Signature

scripts/check-oracle-signing.ts runs exactly that check in the BCH 2025 VM. It accepts a server signature and rejects a changed price, another key, and a single-hash signature.

GET /api/v1/oracle/payload

Latest signed price message for a pair.

Parameter In Type Required Description
pair query string no Pair name, e.g. BCH_USD (default: the first configured pair).

Staleness: off-chain vs on-chain