SIRRUNA. The Study →
The Study · Infrastructure

Oracles: Connecting Chains to Reality

Blockchains exist in isolation. Oracles bridge the gap to real-world data — and why Chainlink leads.

By Mei · Infrastructure Analyst7 min readPDF ↓

Here's something that seems obvious once you hear it, but rarely gets explained: blockchains can't see the outside world. A smart contract on Ethereum has no idea what the price of ETH is, whether it's raining in London, or who won the football match. It only knows what's on the blockchain. This limitation — and its solution — turns out to be one of the most important pieces of infrastructure in crypto.

The Oracle Problem

Smart contracts are powerful precisely because they're deterministic — every node running the same code reaches the same conclusion. This is what makes them trustless. But it creates a fundamental problem: how do you write a contract that depends on information that doesn't exist on-chain?

Consider a simple example: a betting contract that pays out if Manchester United wins. The contract can hold funds, define rules, and execute payments. What it cannot do is watch the match. Someone has to tell the contract who won. And the moment someone has to tell the contract something, we've reintroduced trust into a "trustless" system.

This is the oracle problem: smart contracts need external data to be useful, but external data requires trusting its source. The entire promise of "code as law" breaks down if the inputs to that code can be manipulated.

"Garbage in, garbage out. The most elegant smart contract is useless if it's fed bad data. Oracles don't make blockchains trustless — they make the trust explicit and measurable."

Why This Matters More Than You Think

The oracle problem isn't abstract. Virtually every interesting DeFi application depends on oracles:

Lending protocols need to know collateral values to determine when to liquidate positions. If the price feed is wrong or manipulated, loans get liquidated incorrectly (stealing user funds) or don't get liquidated when they should (leaving bad debt in the system).

Derivatives and synthetic assets track the price of real-world assets — stocks, commodities, currencies. The smart contract has no way to know what Apple stock is trading at. An oracle provides this.

Insurance products that pay out based on real-world events (crop insurance based on rainfall, flight delay insurance) require verifiable data about what actually happened.

Prediction markets need someone to report outcomes. Did the election go this way or that? The market can gather predictions, but it can't watch the news.

Oracles aren't sexy infrastructure. They're plumbing. But without them, DeFi would be limited to on-chain-only applications — a dramatically smaller design space.

Key Insight
Oracles are the trust bottleneck of "trustless" systems. A DeFi protocol might have perfectly audited smart contracts, decentralised governance, and billions in TVL. If its price feed comes from a single source that can be manipulated, none of that matters. Oracle security is protocol security.

How Chainlink Solved It

Several approaches to the oracle problem exist, but Chainlink has become the dominant solution. Understanding their approach explains why:

Decentralised data sources: Instead of one entity reporting a price, Chainlink aggregates data from multiple independent sources. The ETH/USD price feed might pull from ten different exchanges and data providers. Manipulation would require compromising a majority of sources simultaneously.

Decentralised node operators: The entities that relay data to Chainlink aren't anonymous — they're known operators with reputations to protect. Many are major infrastructure providers. Staked collateral gives them financial skin in the game.

Aggregation and filtering: Outlier data points get filtered. If nine sources report ETH at $3,000 and one reports $300, the obvious error gets excluded. The median or weighted average provides the final value.

Economic incentives: Node operators earn LINK tokens for providing accurate data and can be penalised for providing bad data. The incentive structure makes honesty more profitable than manipulation.

Is this perfectly trustless? No. You're trusting that the aggregation mechanism works, that enough node operators are honest, and that the underlying data sources aren't colluding. But it's considerably better than trusting a single source — the attack surface is distributed across multiple independent parties with aligned incentives.

The Competitive Landscape

Chainlink dominates but isn't alone. Alternative approaches offer different trade-offs:

Pyth Network focuses on low-latency financial data, sourcing directly from trading firms and exchanges. It's faster than Chainlink — important for applications where milliseconds matter — but depends more heavily on the reputation of its data providers.

UMA's Optimistic Oracle uses a different model: data is assumed correct unless disputed. If someone reports false data, anyone can challenge it and escalate to a human-arbitrated resolution. This works well for infrequent, high-stakes data (election outcomes) but poorly for continuous price feeds.

API3 argues that oracle networks are unnecessarily intermediary — better to have data providers run their own oracle nodes directly. This reduces the trust chain but requires each provider to maintain blockchain infrastructure.

Each approach involves trade-offs between decentralisation, speed, cost, and simplicity. Chainlink's market dominance reflects a combination of first-mover advantage, network effects (integrating with new protocols is easiest when using what everyone else uses), and genuine technical maturity.

What Could Go Wrong

Oracle failures have caused significant losses:

Flash loan attacks have manipulated prices on DEXs that some protocols used as price sources. The attacker temporarily moves the price, exploits a protocol that reads the manipulated price, then lets the price return to normal — all in one transaction. This is why sturdy protocols use Chainlink's aggregated feeds rather than single DEX prices.

Stale prices during extreme volatility have caused problems when oracle updates couldn't keep pace with rapid price movements. Liquidations happened at outdated prices, causing larger losses than necessary.

Oracle manipulation at the source level remains theoretically possible if enough data providers colluded. The economic incentives make this expensive and detectable, but not impossible.

The practical reality: oracle exploits are possible but have become rarer as protocols matured and adopted better practices. Most sophisticated DeFi protocols now use established oracle solutions with multiple redundancies.

The Rory Sutherland Take
Oracles are fascinatingly counterintuitive. The whole point of blockchains is to eliminate trusted intermediaries. Then oracles... reintroduce trusted intermediaries. But the innovation isn't eliminating trust — it's making trust transparent, measurable, and distributed. You can't audit a bank's internal processes. You can audit exactly which data sources contributed to a Chainlink price feed. The trust doesn't disappear; it becomes visible.

Infrastructure You Don't See

Oracles represent a category of crypto infrastructure that's essential but invisible. Most users never interact with Chainlink directly. They use Aave, which uses Chainlink for price feeds. They use Synthetix, which uses Chainlink for asset prices. The oracle layer sits beneath applications, unseen but load-bearing.

This infrastructure status explains Chainlink's position. It's not consumer-facing technology competing on user experience. It's B2B infrastructure competing on reliability, security, and integration ease. The moat isn't brand recognition — it's the switching costs for protocols that have already integrated and battle-tested their Chainlink implementations.

For investors, this raises the question of how value accrues to infrastructure. LINK tokens are used to pay node operators, creating utility demand. But whether that demand translates to token value depends on tokenomics that continue to evolve. Infrastructure can be immensely valuable without its token capturing that value proportionally.

Connecting Chains to Reality

Blockchains began as isolated systems — internally consistent but disconnected from the world. Oracles changed that. They're the sensory organs that let smart contracts perceive external reality.

The oracle problem hasn't been solved in some absolute sense — trust hasn't been eliminated. But it's been transformed. Instead of trusting one institution with no visibility into their processes, we trust a transparent network of independent operators with public track records and economic incentives for honesty.

This is the pattern of crypto infrastructure generally: not eliminating trust but restructuring it, not removing intermediaries but making them transparent and competitive. Oracles might be the clearest example of this principle in action.

The pipes matter. The plumbing matters. Without oracles, smart contracts would be isolated calculators, processing only on-chain data. With oracles, they become responsive to the world — and that's what makes them useful.