What is a blockchain oracle? How off-chain facts get on-chain
A blockchain oracle brings outside information onto a chain so a smart contract can use it. ethereum.org explains why the chain cannot call a website itself.
A blockchain oracle is a system that brings information from outside a chain onto it, so a smart contract can use that information. ethereum.org’s page on oracles says smart contracts cannot, by default, access data stored off-chain, and that an oracle sources, verifies and transmits that external information. The same page says an oracle can also push information the other way, from the chain out to an external system, for example unlocking a lock after a fee is paid on Ethereum. Without that bridge, a contract only sees what is already on the chain.
Why the chain does not look up a price
ethereum.org explains that a public chain has to stay deterministic: every node, given the same transactions, must reach the same result. If each node called a website for an ether-dollar rate, the site could change, fail or differ, and nodes would disagree. So the outside fact has to be written onto the chain first. After that, every node reads the same stored value. The page calls a contract that mixes on-chain code with off-chain infrastructure a hybrid smart contract. Its illustration is a prediction market: it supposes Alice bets 20 ETH on an election, and says the application needs an oracle to confirm the result before any payout. That 20 ETH is the page’s example, not a stake anyone should copy.
The oracle problem
The same documentation names the hard part. The data has to be correct for the contract to do the right thing, and trusting an operator to be accurate sits awkwardly next to the idea of a contract that does not ask you to trust a person. ethereum.org splits the challenge into three. Correctness means the data came from the source you think and was not altered on the way. Availability means the contract is not stuck waiting. Incentive compatibility means the reporters have a reason to submit the truth, because a submission can be tied to its provider and that provider can be rewarded or penalised. A single signer can be wrong, hacked or bribed. A set of reporters can still cluster around a bad feed. None of this is visible in a token price alone.
What to read before you trust a number
Read which contract stores the feed and how many reporters it uses. A token page on Criptos.ai, such as Ethereum, shows market data from the site’s own sources. It is not an oracle inside your contract. If a contract can spend your tokens, start with token approvals. A plain-language pass over a term is on explain it like I’m five, and the short definitions are in the crypto dictionary. Value locked in protocols that depend on price feeds is summarised on DeFi TVL. A DAO that pays from a treasury still depends on the data the contract actually reads.
Sources
- Oracles (ethereum.org) (2026-12-05)
Frequently asked questions
Can a smart contract read a website by itself?
Not by default. ethereum.org says outside data has to be written on-chain first, or nodes would not agree.
Does a correct oracle remove the risk of the contract?
No. It only supplies an input. A bad feed, a paused feed or a bug in the contract can still make the payout wrong.
Related guides
- What is a DAO? On-chain organisations and how voting works
- What is a token approval? Allowance, limit and what stays signed
- CEX vs DEX? The difference between a centralised and a decentralised exchange
Try these free tools
- Crypto Fear & Greed Index — Today's crypto market sentiment from 0 (extreme fear) to 100 (extreme greed), with daily history since 2018 explained in plain language.
- Crypto scam & hack alerts — The latest crypto hacks, exploits and scams, with real data from DefiLlama and news, explained in plain language for beginners.
- Check a token by its contract address — Paste a token address (Ethereum, BNB Chain, Base, Arbitrum, Polygon or Solana) and see in seconds whether it shows scam signs, hidden taxes and enough liquidity.
- Bitcoin Rainbow Chart — Bitcoin's price since 2010 against its long-term trend, in 9 colour bands. Updated daily and explained in plain language.
Want to follow your coins in one place? Create your free portfolio — wallets, assets and an AI risk check, in a free account. Create a free portfolio
Educational content only, not financial or tax advice. Criptos.ai never recommends buying or selling any asset.