Dictionary · O
Oracle
also: blockchain oracle, price feed, data feed
An oracle is a service that feeds outside information, such as a pound-to-dollar rate or a match result, into a blockchain so smart contracts can act on it.
Rules checked against GOV.UK, the FCA and legislation.gov.uk on 17 November 2026. How entries are checked
Why can't a blockchain just check the price itself?
A blockchain only knows what has been written to it. It cannot look up an exchange rate, a sports score or the weather. An oracle closes that gap by posting the data on-chain, usually by collecting it from several sources and having several independent operators agree before the number is published.
The weak point is obvious once you see it: if the oracle is wrong, every contract that trusts it is wrong too. Attackers have pushed the price of a thinly traded token on one small market, let an oracle pick up that distorted price, and then borrowed far more against it from a lending app than the token was really worth.
For someone who only holds coins in a wallet, oracles rarely matter. They start to matter the moment you borrow, lend or use anything that can liquidate you automatically, because the oracle's number decides when that happens.
Callum deposits tokens worth £1,000 as collateral and borrows £500 on a lending app. The app reads its prices from an oracle. One night the oracle reports a 40% drop, partly a real fall and partly a spike on a small market. His collateral, now valued at £600, is sold automatically to repay the loan, with a penalty on top, before the price recovers an hour later.
Not the same as Smart contract: The smart contract is the program that acts; the oracle is the messenger that tells it what is happening off the chain.
| Oracle | Smart contract | |
|---|---|---|
| Job | Brings outside data onto the chain | Runs its code and moves tokens |
| Where its information comes from | Several sources, agreed by independent operators | Transactions sent to it, plus oracles |
| When it goes wrong | Every contract trusting it acts on a false number | A bug runs exactly as written |
Read this as background on how price feeds work, not as a recommendation to borrow or lend on any DeFi app.
How do you protect yourself when a loan depends on an oracle?
- Before borrowing on a DeFi app, find out which price source it uses and how quickly that source updates.
- Leave a wide margin between your loan and your collateral; a brief wrong price can still trigger a real liquidation.
Questions people type about oracle
why do blockchains need oracles
Because a blockchain can't fetch outside data by itself, and contracts for loans, insurance or bets need prices and results from the real world.
what is an oracle attack
An attempt to feed a contract a false price, often by briefly moving a thin market the oracle reads, so the attacker can borrow or withdraw more than they should.

