Oracle

Oracle: A blockchain oracle is a service that brings information from outside a blockchain, such as asset prices or event results, into smart contracts. Blockchains cannot fetch outside data by themselves, so oracles act as the bridge. Most DeFi lending and trading apps rely on oracles to know current prices.

By Matt Willemsen, Director of Research, reviewed by Ben Simpson. Updated November 2026. General education only.

Why blockchains need oracles

A smart contract can only see data already on its own blockchain. It cannot check an exchange price, the weather or a sports score. Ethereum’s documentation on oracles describes oracles as applications that source, verify and deliver this outside data so contracts can act on it, for example to decide when a loan is under-collateralised.

How oracles work

A typical price oracle gathers prices from many sources, combines them and posts the result on chain at regular intervals or when the price moves by a set amount. Decentralised oracle networks such as Chainlink and Pyth use many independent operators so that no single party controls the data. This matters because the contract will act on whatever number it receives.

The oracle problem and its risks

If an oracle reports a wrong price, the contracts relying on it can make wrong decisions, such as liquidating healthy loans or letting someone borrow far too much. Attackers have manipulated thinly traded markets to push a bad price through an oracle and drain DeFi apps. Oracle networks such as Chainlink, Pyth and RedStone sit in our research team’s DeFi infrastructure resources for members for this reason: a well-built app can still fail through a weak data feed.

What it means for investors

Before depositing into a lending or trading app, it helps to know which oracle it uses, how many sources feed it and whether it has been exploited before. Oracle risk sits alongside smart contract risk and is rarely shown on an app’s front page. Treat any yield that depends on a single, unknown price source with extra care.

Frequently asked questions

What is the most widely used crypto oracle?

Chainlink is the most widely used oracle network in DeFi, with Pyth and others also common, especially for fast-moving price data.

Why can’t smart contracts just read prices from a website?

Every node on a blockchain must reach the same result. Reading a website could give different answers at different moments, so outside data has to be posted on chain by an oracle first.

What is an oracle attack?

An attack where someone feeds or manipulates a price that an oracle reports, so that a DeFi app acts on a false value. It often involves pushing the price of a thinly traded token.

Related guides