Oracle
- An oracle is a service that delivers external, real-world data such as prices, weather or sports results to a blockchain so smart contracts can react to information they cannot read on their own.
- Blockchains are deliberately isolated, so decentralized oracle networks source data from many independent providers and aggregate it to avoid a single point of failure.
- Because most DeFi applications depend on reliable price feeds, a manipulated or faulty oracle can cause large losses, the core of the "oracle problem."
An oracle is a service that delivers external, real-world data to a blockchain so that smart contracts can react to information they cannot read on their own, such as asset prices, weather or sports results.
How it works
Blockchains are deliberately isolated and cannot fetch outside data directly. An oracle bridges that gap by sourcing information off-chain and publishing it on-chain in a form contracts can use. To avoid a single point of failure, decentralized oracle networks gather data from many independent providers and aggregate it, so no one source can feed a false value.
Why it matters
Most useful DeFi applications — lending, derivatives, stablecoins — depend on reliable price data, making oracles critical infrastructure. A manipulated or faulty oracle can cause large losses, which is the “oracle problem” that decentralized designs aim to solve.
Example
A lending protocol uses an oracle price feed to decide when a borrower’s collateral has fallen far enough to be liquidated.
Why can't a smart contract just fetch data from the internet itself?
What is the "oracle problem"?
Are decentralized oracles safer than a single data source?
Other glossary terms connected to this one.
Go deeper than the definition — explainers, live data and free calculators.