Crypto

Blockchain oracle

Also calledoracle · oracle

A blockchain oracle is a service or mechanism that brings external data or events into a blockchain environment for use by smart contracts. Because blockchains cannot natively verify offchain facts, an oracle is a trust assumption as well as a data source.

What Blockchain oracle means

Smart contracts can read onchain state, but they cannot directly know the price of gold, the outcome of a sports match, or whether a shipment arrived. An oracle fills that gap by supplying data to the chain. The hard part is not just getting data onchain, but doing so reliably and with clear trust boundaries.

Oracles power price feeds, derivatives, insurance, lending, and many other onchain applications. If the oracle is stale, manipulated, or misconfigured, the contract may settle incorrectly. For financial products, the oracle design is often as important as the smart contract itself.

A lending protocol may use an oracle price feed to decide whether a borrower is undercollateralized. If the feed says ETH is $3,000, the protocol may allow a larger loan than if ETH is $2,000. If the price feed is wrong or delayed, liquidation decisions can be wrong too.

Common questions

Is a blockchain oracle a blockchain itself?+

No. It is a data-delivery mechanism or service that connects offchain information to onchain systems.

Do all smart contracts need oracles?+

No. Only contracts that depend on information not already available onchain need an oracle or some other external input source.

Go to the original material.

01Chainlink Documentation02Uniswap v2 Whitepaper03Ethereum.org — Glossary