Skip to content

Delphi Oracle (v1)

!!! danger "Retired — use Delphi v2" Delphi v1 has been retired. The on-chain UTXOs are still there, but every Delphi v1 UTXO now reports price = 0 and will stay that way — there are no further updates and no path back to a live price. Any consumer reading a v1 UTXO without filtering on price != 0 is effectively treating BCH as worth zero dollars.

Migrate to [Delphi v2](../../delphi/index.md).

On-chain price oracle on the Bitcoin Cash network.

The Delphi v1 oracle was originally developed to serve as an on-chain price feed for downstream DeFi contracts on Bitcoin Cash.

The Delphi v1 oracle contract allows for getting price information using transaction introspection. By taking an oracle UTXO as input, transaction introspection can be used to fetch price information from the oracle's NFT commitment.

flowchart LR
   DelphiInput --> DeFiTransaction--> DelphiOutput
   DefiContractIn --> DeFiTransaction --> DefiContractOut

Benefits of using an on-chain oracle in this manner include:

  • No need to pass oracle and message as input and verify it.
  • You do not need to query external sources for oracle messages.
  • You can get the median price of multiple oracles as one input (see aggregated.cash).
  • The oracle contract owner can swap out the underlying oracle if it goes offline.