A blockchain oracle is a third-party service or infrastructure that provides smart contracts with external data from the real world — price feeds, weather data, sports results, election outcomes, and other information that exists off-chain. Oracles bridge the fundamental gap between the deterministic, isolated world of the blockchain and the dynamic, unpredictable real world. THE ORACLE PROBLEM Smart contracts are deterministic: given the same state, they always produce the same output. They cannot access external websites, APIs, or databases. This is intentional — if contract execution depended on external data, nodes would disagree about results. But most practical smart contract applications require real-world data: a DeFi lending protocol needs accurate asset prices, a parametric insurance contract needs weather data, a prediction market needs event outcomes. The oracle problem is: how do you bring this data on-chain in a trustworthy way? CHAINLINK: THE DOMINANT ORACLE NETWORK Chainlink solves the oracle problem through decentralisation: Instead of one data source, Chainlink aggregates responses from dozens of independent node operators. Node operators stake LINK tokens as collateral — misbehaving nodes lose their stake. Multiple independent data sources are aggregated using a median calculation — no single source can manipulate the result. Chainlink Price Feeds provide ETH/USD, BTC/USD, and hundreds of other price pairs to thousands of DeFi protocols. LINK token: Pays oracle node operators for data delivery. TYPES OF ORACLES Price Oracles: Feed real-time asset prices to DeFi protocols (Chainlink, Pyth, Band Protocol, API3). Event Oracles: Report outcomes of real-world events (sports, elections) for prediction markets. Randomness Oracles: Provide provably random numbers for gaming and NFT minting (Chainlink VRF). Cross-chain Oracles: Report state from one blockchain to another. ORACLE MANIPULATION: A KEY ATTACK VECTOR Manipulating the price feed to a lending protocol is one of the most common DeFi exploits. Protocols relying on single on-chain price sources (vulnerable to flash loan manipulation) have been exploited for hundreds of millions. Using multiple decentralised oracle networks (Chainlink + TWAP) is essential security practice.