Smart contracts & programmability

blockchain oracle

A blockchain oracle is a service that brings real-world information onto the blockchain so that smart contracts can use it. By design, a blockchain is a sealed world: contracts can only see data already on the chain, and they cannot reach out to a website or sensor on their own. This keeps everyone's computers in agreement, but it also means a contract has no native way to know yesterday's exchange rate, the score of a match, or the weather. An oracle is the trusted messenger that fetches such facts from the outside and delivers them on-chain in a form contracts can read.

The reason contracts cannot simply browse the internet themselves is determinism: every node must compute the exact same result, but an outside website might answer differently from one moment or one machine to the next, breaking that agreement. An oracle solves this by gathering the information off-chain and then writing it onto the blockchain as ordinary data that every node sees identically. To avoid trusting a single source that could be wrong or dishonest, robust oracles often pull from many independent providers and combine their answers, so no lone reporter can quietly feed the contract a false number.

Oracles matter because most useful applications need to react to the outside world. A loan that must check whether collateral is still worth enough, an insurance payout triggered by a real flight delay, a bet settled by a real game result, all depend on reliable outside data. Oracles are the bridge that lets self-contained contract logic connect to reality, which is why they are sometimes called critical plumbing for the whole space, and why their honesty is taken so seriously.

A flight-delay insurance dapp cannot watch airports by itself. An oracle reads official flight data off-chain and posts 'flight 123 was delayed three hours' onto the blockchain; the insurance contract sees that on-chain fact and automatically pays out, with no claims agent involved.

Because a contract trusts what the oracle reports, a faulty or manipulated oracle can mislead it; this is why serious oracles draw on many independent sources.

Also called
oracle预言机預言機