Technical Definition

Oracle

A blockchain oracle supplies smart contracts with data or results that the blockchain cannot reliably obtain from its own on-chain state.

By Crypto University Editorial
DeFi due diligenceLiquidationCollateral

✦ Key Insight

DeFi protocols may use oracle data for collateral values, liquidations, derivatives, and stablecoin mechanisms. Incorrect, stale, manipulated, or centralized oracle data can cause bad liquidations, insolvency, or other protocol failures.

✕ Common Misconceptions

An oracle does not make bad data automatically trustworthy. Check the data sources, update frequency, deviation thresholds, fallback logic, manipulation resistance, and whether one party can control the result.

Detailed Explanation

Blockchains are intentionally isolated from most external systems. An oracle connects smart contracts to information such as asset prices, interest rates, weather data, reserve information, or cross-chain messages. Oracle designs can be centralized, decentralized, first-party, or based on multiple data sources.

In Practice

“A lending protocol needs the ETH/USD price to calculate whether a borrower's collateral remains sufficient. It reads a price feed from an oracle rather than asking the Ethereum blockchain to determine the dollar price itself.”

Dig Deeper