DeFi

Oracle

A service that feeds outside data, like asset prices, into smart contracts, which otherwise cannot see anything beyond their own blockchain.

Blockchains are sealed off. A smart contract cannot read a stock price or the weather on its own. Oracles bridge that gap, delivering external data on-chain so contracts can act on it. A lending protocol, for example, needs an oracle price to know when to liquidate a loan.

This is also a weak point. Feed a contract a wrong price and it will obey blindly. Attackers have exploited thin or manipulable price feeds to trigger bad liquidations and drain funds. Chainlink became the dominant oracle network by aggregating many sources to resist exactly this.

Related terms