Ελληνικά

What is a blockchain oracle?

In short

An oracle is a mechanism that brings data from outside sources onto a blockchain, so smart contracts can use information such as cryptocurrency prices or the outcomes of events.

By the Cryptonomy editorial team · Updated · 2 min read

How can a blockchain find out whether it rained in Athens or what Bitcoin’s price is on an exchange? Smart contracts don’t open websites on their own or call outside services at will. The network’s nodes must be able to verify the same execution with the same data.

Think of an automatic sprinkler system that needs information from a weather station. The station measures the rain, a mechanism relays the reading and the system decides whether to water. Similarly, an oracle collects information, processes it according to its design and makes it available on the blockchain. It relays the information; it doesn’t by itself guarantee that the information is true.

There are oracles that rely on a single provider and decentralized oracle networks that combine reports from many participants. For example, a price service may aggregate data from different markets and publish a final price instead of depending on a single exchange.

Why it matters

In decentralized finance (DeFi), lending apps need prices to calculate the value of collateral. If you have deposited crypto as collateral for a loan, the price provided by the oracle can determine whether your position gets liquidated automatically.

The same logic enables apps that use weather data, match results or other off-chain information. We believe that the reliability of the data matters as much as the code that uses it: a correctly written contract can carry out an unwanted action if it receives wrong information.

What to watch out for

A price can be wrong, delayed or the product of manipulation in a low-liquidity market. Even many providers may depend on the same original source. That is why the label “decentralized oracle” isn’t enough on its own.

When you evaluate an app, look at where it gets its data, how often it updates it and what it does if updates stop. The blockchain’s security doesn’t automatically fix a faulty outside source.

From Cryptonomy

Articles where you will find it