Skip to content
Glossary

Oracle

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.

Oracle: Frequently Asked Questions

Why do blockchains need oracles at all?
Blockchains are deliberately isolated and cannot reach outside data directly, so a smart contract cannot, by itself, know an asset's price, the weather or a sports result. An oracle bridges that gap by sourcing information off-chain and publishing it on-chain in a form contracts can use, enabling applications that must react to real-world events.
What is the oracle problem?
The oracle problem is the risk that the external data feeding a smart contract is wrong or manipulated. Because contracts act automatically on the values they receive, a single corrupted feed can trigger large losses. Decentralized oracle networks aim to solve this by gathering data from many independent providers and aggregating it, so no one source can impose a false value.
How do decentralized oracles improve reliability?
Instead of trusting one data source, a decentralized oracle network collects information from many independent providers and aggregates it before publishing on-chain. This removes the single point of failure that one feed would create, making it much harder for any individual source to push a false value. Most lending, derivatives and stablecoin protocols depend on such reliable feeds.