Glossary termData service

Oracle (Blockchain)

Also known as: Blockchain oracle

Service that supplies external data such as prices or real-world events to smart contracts, which cannot fetch information from outside their blockchain.

A blockchain oracle connects smart contracts to information that does not originate on the chain. Contracts must produce the same result on every node, so they cannot call external websites or databases directly. Oracles fill the gap by publishing data on chain, such as asset prices, exchange rates, weather readings, sports results, verifiable random numbers or confirmation that a payment occurred elsewhere. Some oracles also work in the other direction, triggering actions outside the blockchain when on-chain events occur.

Designs vary in how much trust they require. A centralized oracle relies on a single provider. Decentralized oracle networks, such as Chainlink, aggregate reports from many independent nodes and data sources to reduce reliance on any one of them. Some applications derive prices from on-chain trading activity, often averaging over time to resist manipulation, while optimistic designs accept submitted answers unless someone disputes them within a set period. Cryptographic attestations and secure hardware are also used to show where data came from.

The oracle problem is that a blockchain's guarantees do not extend to the data fed into it: a contract that executes perfectly on false input still produces a bad outcome. Manipulated or faulty price feeds have enabled some of the largest exploits in decentralized finance, often combined with flash loans to move thinly traded markets. Oracles can also become single points of failure or control. The issue illustrates a wider limit of distributed ledgers, which can preserve records faithfully but cannot verify the outside world on their own.

Key points

  • Smart contracts cannot read external data directly and depend on oracles to supply it.
  • Decentralized oracle networks aggregate multiple sources to reduce reliance on one provider.
  • Price manipulation through oracles has enabled major DeFi exploits.
  • A blockchain cannot verify that the external data it receives is true.

Related entries

Glossary term

Smart Contract

BlockchainProgramming

Program stored on a blockchain that runs automatically when its conditions are met, carrying out agreements or rules without a central operator.

Glossary term

Financial services such as lending, trading and derivatives built from smart contracts on public blockchains, operating without traditional intermediaries.

Glossary term

Record of transactions replicated and synchronized across many computers, so that no single party holds the master copy or can quietly alter it.

Technology

Ethereum

BlockchainProgramming

Decentralized blockchain platform, launched in 2015, that runs smart contracts and uses its native cryptocurrency, ether, to pay for computation.

Glossary term

Stablecoin

Blockchain

Cryptocurrency designed to hold a stable value relative to a reference asset, usually the US dollar, through reserves or algorithmic mechanisms.

Glossary term

Method by which the nodes of a distributed system agree on one shared state, such as which transactions a blockchain records and in what order.

Featured in guides

Referenced by

Other entries that discuss or point to Oracle (Blockchain).