Crypto

Blockchain oracle

Also calledoracle

A blockchain oracle is a mechanism that supplies a smart contract with data or events from outside its native blockchain, or communicates blockchain information to an external system. Oracles commonly provide market prices, interest rates, proof-of-reserves data, weather results, or other inputs that blockchains cannot independently verify.

What Blockchain oracle means

Smart contracts can reliably read data already recorded on their own chain, but they cannot directly know a stock price, an exchange rate, or whether an event happened offline. An oracle provides that connection. Its design may use one source, several data providers, cryptographic proofs, or a network of nodes that aggregate and publish a result.

A blockchain oracle can determine whether a lending protocol liquidates a position, how a derivative settles, or whether a stablecoin mechanism responds to price changes. Incorrect, stale, manipulated, or unavailable oracle data can therefore cause incorrect onchain actions even if the smart contract code itself operates as written.

A lending protocol accepts ETH as collateral and needs an ETH/USD value to test its collateral rules. It reads a designated oracle feed rather than trusting the price in one AMM pool. If the feed is stale or configured for the wrong asset pair, the protocol could calculate collateral values incorrectly.

Common questions

Why can’t a smart contract just fetch a website’s price?+

Blockchains require network participants to reach the same verifiable result. Letting a contract independently retrieve changing web content would make consensus difficult and could introduce inconsistent or manipulable inputs. Oracles provide a defined, verifiable route for external data.

Are price oracles used only for cryptocurrency prices?+

No. Oracle systems can deliver many types of data and computation results, including foreign-exchange rates, commodity prices, weather information, random numbers, proof-of-reserves data, and cross-chain messages, subject to the capabilities of the specific oracle design.

Go to the original material.

01Chainlink Documentation — Data Feeds02Ethereum.org — Oracles