Oracles (Blockchain Oracles)
Also known as: Data feed, External data provider, Oracle network, Off-chain data source, Smart contract input service, Blockchain bridge service
Blockchain oracles are services that connect smart contracts to off-chain data sources, enabling blockchains to interact with real-world information.
Infrastructure
Beginner level
A blockchain oracle is a service or protocol that enables smart contracts to receive data from sources outside the blockchain environment. Since blockchains are closed, deterministic systems, they cannot directly access real-world data on their own. Oracles serve as essential bridges between on-chain code and off-chain information, allowing decentralized applications to interact with external events, APIs, and data feeds.
For instance, a decentralized finance (DeFi) protocol may rely on a price oracle to receive real-time market data for cryptocurrency assets. Similarly, an insurance smart contract can use a weather oracle to trigger payouts based on off-chain climate data. Oracles make it possible to build dynamic and responsive smart contracts by feeding them trusted external inputs.
There are different types of oracles depending on how they source and transmit information. Software oracles pull data from online sources like APIs, while hardware oracles collect inputs from physical sensors or IoT devices. Inbound oracles deliver external data to the blockchain, and outbound oracles transmit blockchain data to off-chain systems. Decentralized oracles, such as Chainlink, aggregate multiple data providers to reduce the risks of manipulation and ensure data accuracy.
Oracles are vital for expanding blockchain use cases beyond simple token transfers. They power ecosystems like DeFi, insurance, gaming, NFTs, and DAOs by enabling trustless access to real-world data in a transparent and verifiable way.
