tokenomics.news

What Is a Blockchain Oracle?

A lending protocol can calculate how much debt a borrower owes from its own records. To work out what the borrower’s collateral is worth in dollars, it needs a price. A blockchain oracle supplies that missing piece by making external data available to smart contracts.

Publikováno: 02.12.2026
What Is a Blockchain Oracle?

Why Smart Contracts Need External Data

A smart contract can read information already recorded on its blockchain, such as token balances and transactions. An exchange price or a bond payment confirmation may originate outside that network. An oracle provides a way to bring such information on-chain so a contract can use it.

How a Price Feed Reaches the Blockchain

Imagine an oracle that collects quotes from several trading venues. It combines them into a reference price and submits an update to an on-chain contract. Other contracts can then read the latest value and check when it was updated.

The choice of sources matters. A feed that combines several venues can reduce its dependence on any single venue, although the result still depends on how the oracle selects and combines its inputs.

What Happens Between Updates

An on-chain price feed may update when the reference price moves by a specified amount or after a set interval. Between updates, a contract reading the feed sees the most recent reported value.

In a fictional lending protocol, a price older than 30 minutes might be treated as stale. The protocol could pause new borrowing against that asset until a fresh price arrives. The lending protocol sets that rule and decides which actions it applies to.

How Lending Protocols Use Oracle Prices

A lending contract can multiply the amount of collateral by the reported price to estimate its value. It then compares that value with the outstanding debt. If the reported collateral value falls far enough, the position may become eligible for liquidation under the protocol’s rules.

The oracle supplies the price. The lending contract applies the borrowing limits and liquidation threshold.

What to Look for in an Oracle Design

Look at where the data comes from, how frequently it updates, and what the application does when an update is late or unavailable. A published price is easier to interpret when you can see which market it represents and when it was last reported.

Those details explain what the smart contract actually knew at the moment it acted.