Coindaro

Crypto news, markets and guides

Market cap $2.79 T −3.24 % over 24 hours24h volume $73.79 BBTC dominance 59.8 %ETH 10.9 %Fear & Greed 62 GreedCoins 22,254

Glossary

Oracle (blockchain oracle)

A blockchain oracle is a service that feeds external data, such as asset prices, interest rates, sports results or weather, into smart contracts, which cannot access information outside their own blockchain on their own.

Also called Crypto oracle, Price oracle, Oracle network, Data feed

See also

A blockchain oracle is a bridge between a blockchain and the outside world. A smart contract can only read data that is already on its own chain: it cannot check the price of ether on exchanges, the result of a match or the temperature in Paris. An oracle collects that information, verifies it and writes it on-chain so that contracts can use it.

How an oracle works

The simplest oracle is a single server that posts a value. That creates a weak point, so most serious applications rely on decentralized oracle networks. Several independent node operators fetch the same data from multiple sources, the network aggregates their answers, for example by taking the median, and publishes the result on the blockchain. Price feeds are typically updated when the price moves beyond a set percentage or after a fixed time.

Chainlink is the best-known oracle network and provides price feeds used by many DeFi protocols. Other designs let applications “pull” a signed price only when they need it.

A DeFi lending example

A lending protocol lets you borrow $1,000 against 1 ETH. To know whether your loan is still safe, it needs the ETH price at all times. It reads it from an oracle feed. If the feed reports that ETH has fallen to the protocol’s liquidation level, the contract automatically sells part of your collateral. Now imagine an attacker manipulates the price on a small exchange used as the only source: the oracle reports $500 instead of $3,000, and healthy positions are wrongly liquidated. This is why the quality of oracles is critical.

Why oracles matter

Without oracles, most of DeFi could not exist: lending, stablecoins, derivatives and insurance all depend on outside data. Oracles also power cross-chain messaging, proof of reserves for tokenized assets and verifiable randomness for games and NFTs.

Risks and limits

  • Manipulation: an oracle relying on thin markets or a single source can be gamed, and several DeFi exploits started that way.
  • Centralization: a network run by few operators, or with an admin key, is a point of trust.
  • Delays: in very fast markets, a feed that updates too slowly can lag the real price.
  • The oracle problem: a blockchain cannot prove that outside data is true; it can only make lying expensive and visible.

Read also

Back to the glossary