DeFi

Oracle

A service that feeds real-world data — most importantly, prices — onto the blockchain so smart contracts can use it. Blockchains can't see the outside world; oracles are their eyes.

Smart contracts can only read what's on their own chain, but a lending protocol needs to know the current price of ETH to decide when a loan is undercollateralised. Oracles bridge that gap by publishing external data on-chain. Decentralised oracle networks like Chainlink aggregate data from many independent sources and node operators, so no single party can quietly feed the contract a lie.

Oracles matter because they're a favourite attack target: manipulate the price feed and you can trick a protocol into handing over funds, a trick behind many flash loan exploits. A protocol is only as trustworthy as its weakest data source. When evaluating a DeFi project, "what oracle does it use, and how easily could that feed be manipulated?" is a genuinely important question.

Related terms

Smart ContractDeFiFlash Loan

Go deeper in our guides

New to crypto? Definitions only get you so far — the free Crypto 101 path connects the dots.

Start Crypto 101 →