Oracle
An oracle provides external real-world data, such as price feeds, to smart contracts on a blockchain, bridging on-chain and off-chain worlds.
What Is a Oracle?
An oracle is a service or mechanism that supplies external, real-world data to smart contracts on a blockchain. Blockchains operate in isolation, unable to directly access off-chain information like stock prices, weather data, or sports results. Oracles bridge this on-chain and off-chain divide.
Oracles function by retrieving data from external sources, validating it, and delivering it securely to the blockchain. Decentralized oracles employ networks of independent nodes that fetch the same data from multiple providers. They aggregate results, often using median values, to prevent manipulation. For instance, Chainlink oracles query various exchanges for cryptocurrency prices, compute a reliable feed, and submit it via a secure smart contract interface.
Oracles hold critical importance in decentralized finance (DeFi) and other applications. They enable lending protocols to adjust collateral based on real-time asset prices, prediction markets to settle outcomes, and insurance smart contracts to trigger payouts on weather events. Faulty oracles pose security risks, such as enabling exploits like flash loan attacks through manipulated data feeds.
Common types include price oracles for market data, randomness oracles for verifiable random numbers in gaming or NFTs, and input/output oracles for complex computations. Key characteristics prioritize decentralization to minimize trust assumptions, tamper resistance through cryptographic proofs, and low latency for time-sensitive applications.
A bridge in blockchain allows assets or data to move between different blockchains, enabling interoperability between otherwise separate networks.
Read full definitionCryptocurrency is a digital or virtual currency secured by cryptography, operating on decentralized blockchain networks to enable secure, peer-to-peer transactions.
Read full definitionHODL is cryptocurrency slang for holding assets long-term despite price volatility, rather than selling. It originated from a 2013 forum post misspelling 'hold' as 'I AM HODLING.'
Read full definitionDeFi (Decentralized Finance) refers to a set of financial services, such as lending and trading, built on blockchain technology without traditional intermediaries like banks.
Read full definitionEntropy is the randomness used to generate secure cryptographic keys or seeds in blockchain and cryptocurrency systems.
Read full definitionDecentralization spreads control and data across many independent nodes in a blockchain network, eliminating reliance on a single authority.
Read full definitionReal-World Examples
Example 1: DeFi Lending
Aave uses Chainlink oracles to fetch real-time ETH/USD prices. Lenders deposit collateral. The oracle updates values. If collateral falls below 150% loan value, liquidation triggers.
Example 2: Prediction Markets
Users bet on Super Bowl winners via Polymarket. Oracles report official scores from trusted sources. Smart contracts settle bets and pay winners automatically.
Example 3: Parametric Insurance
A farmer buys crop insurance on Etherisc. Chainlink oracles pull satellite rainfall data. If below 200mm, the contract pays out without claims processing.
Example 4: Randomness in Gaming
NFT projects like Chainlink VRF use randomness oracles. Players request loot boxes. The oracle generates verifiable random numbers for fair item drops.
A lending protocol is a DeFi smart contract platform on blockchain where users lend crypto to earn interest and borrow assets using collateral.
Read full definitionEthereum is a decentralized blockchain platform that enables smart contracts and decentralized applications (dApps). Its native cryptocurrency is Ether (ETH).
Read full definitionEntropy is the randomness used to generate secure cryptographic keys or seeds in blockchain and cryptocurrency systems.
Read full definitionAn NFT (Non-Fungible Token) is a unique digital asset stored on a blockchain, representing ownership of a specific item, such as artwork, music, or virtual goods.
Read full definitionReady to Choose a Secure Wallet?
Use our tools to find the right hardware wallet for your needs.