Skip to main content
Quay lại từ điển
Technical
Intermediate

Oracle

Còn được gọi là: Blockchain Oracle, Data Oracle, Price Feed

A service that provides smart contracts with external real-world data such as asset prices, weather, or sports scores that blockchains cannot access natively.

A blockchain oracle is a bridge between on-chain smart contracts and off-chain data sources. Blockchains are isolated systems that cannot access external information. Oracles solve this "oracle problem" by fetching, verifying, and delivering real-world data to smart contracts.

Why Oracles Are Needed:

Smart contracts execute based on on-chain data. But DeFi lending needs asset prices, insurance contracts need weather data, and prediction markets need event outcomes. Oracles make these applications possible.

Types of Oracles:

Price Feed Oracles: - Deliver asset prices to DeFi protocols - Used for liquidations, swaps, and lending rates - Chainlink dominates this category

Compute Oracles: - Perform off-chain calculations and return results - Used for complex computations too expensive on-chain

Cross-Chain Oracles: - Relay data between different blockchains - Enable cross-chain messaging and verification

VRF (Verifiable Random Function): - Generate provably fair random numbers - Used for NFT minting, gaming, lotteries

Major Oracle Providers:

ProviderMarket ShareApproach
Chainlink~50%Decentralized node network
Pyth~25%First-party data from exchanges
RedstoneGrowingModular, on-demand feeds
API3NicheFirst-party oracle nodes

Oracle Attack Vectors: - Price Manipulation: Manipulating the data source to trigger false liquidations - Flash Loan Attacks: Using flash loans to manipulate spot prices that oracles read - Stale Data: Oracles not updating quickly enough during volatility - Centralization: Single-source oracles create a single point of failure

The Oracle Problem: Bringing real-world data on-chain inherently requires trust in the data provider. Decentralized oracle networks like Chainlink mitigate this by aggregating data from multiple independent sources and penalizing dishonest nodes, but the fundamental challenge of trusting off-chain data remains.

Phân tích tiền điện tử liên quan

Khám phá cách Oracle áp dụng cho các tiền điện tử này với phân tích điểm STRICT chuyên sâu.

Cập nhật lần cuối: 3/4/2026