Technical Definition

Oracle

A blockchain oracle is a system that provides smart contracts with information from outside the blockchain, such as asset prices, interest rates, sports results, weather data, or other external information.

By Crypto University Editorial
Smart ContractDeFiLiquidation

✦ Key Insight

Blockchains cannot automatically know what happens outside their own network. DeFi lending, derivatives, stablecoins, prediction markets, and synthetic assets often depend on reliable oracle data. If an oracle provides inaccurate or manipulated information, smart contracts can make incorrect decisions.

✕ Common Misconceptions

Assuming oracle data is automatically accurate

Ignoring update frequency

Using protocols with weak oracle design

Confusing an oracle with a block explorer

Underestimating manipulation risk in illiquid assets

Detailed Explanation

How It Works

An oracle network may gather data from:

  • Crypto exchanges

  • Market-data providers

  • APIs

  • Banks

  • Sensors

  • Other blockchains

It then aggregates and publishes the information on-chain.

FAQs

Why can’t a smart contract check prices directly?
Blockchains need an external mechanism to bring off-chain information into the network.

Can oracles fail?
Yes.

Are decentralised oracles safer?
They can reduce single-source risk, but design quality still matters.

In Practice

“A lending protocol needs to know the current ETH price to calculate whether a borrower’s collateral is sufficient. An oracle supplies the price. If ETH falls below the liquidation threshold, the protocol may liquidate the position.”

Dig Deeper