Skip to content
Sun, Jul 12 UTC 02:15:10 CAP $1.98T
26 Fear Live
Join free
Glossary

Oracle Intermediate

An oracle is a service that feeds outside, real-world data, such as asset prices, into a blockchain so that smart contracts can use information they cannot access on their own.

Blockchains are deliberately isolated systems. They cannot reach out to a website or an external database on their own, which is a safety feature, but it means smart contracts that need real-world information, such as current asset prices, weather data, or the outcome of an event, need some way to receive it. An oracle is the mechanism that delivers that outside data on-chain, in a form a smart contract can read and act on.

Price oracles are especially important in decentralised finance, where lending protocols, derivatives platforms, and other applications rely on accurate, timely price data to value collateral, calculate interest, or decide when a position should be liquidated. Because so much depends on the data an oracle provides, oracle design varies from a single centralised data source to decentralised networks that combine and cross-check many independent sources before delivering a figure on-chain.

A faulty, delayed, or manipulated oracle feed is a well-documented source of risk in decentralised finance, since a protocol that trusts incorrect price data can make incorrect decisions, including triggering liquidations that should not have happened or allowing loans against overvalued collateral. This is often referred to as the oracle problem, and it is one of the reasons oracle design is treated as a serious security consideration rather than an afterthought.

Key takeaways

  • Oracles supply blockchains with outside data, such as asset prices, that smart contracts cannot access on their own.
  • Price oracles are widely used in decentralised finance to value collateral and trigger actions like liquidations.
  • A faulty or manipulated oracle feed is a recognised source of risk for any protocol that depends on it.

Oracle — frequently asked questions

Why can a smart contract not just fetch data from a website itself?

Blockchains are designed to be deterministic and isolated from outside systems, so they cannot make direct calls to external websites or databases. An oracle acts as a trusted bridge that brings that outside data onto the blockchain in a usable form.

Are all oracles equally trustworthy?

No. Designs range from a single centralised data provider to decentralised networks that combine many independent sources. Systems relying on multiple independent sources are generally considered more resistant to manipulation than a single data feed.

This definition is educational and not financial advice. Crypto is volatile and high-risk — always do your own research.
Keep learning

New to crypto, or filling in the gaps? Work through the essentials in Learn, browse every term A–Z, or see live prices for the coins these concepts power.