What is a blockchain oracle?

What is a blockchain oracle for smart contracts? And why is it needed? I’ve seen a lot of posts about "how do oracles work", and "what is the oracle problem" but I don’t understand what they are?

Ethereum Asked by Keenan Olsen on November 15, 2021

1 Answers

One Answer

A blockchain oracle is any device or entity that connects a deterministic blockchain with off-chain data.

Smart contracts cannot make API calls themselves because they are deterministic, but without being able to interact with data the lives off-chain, they won't be able to utilize the decentrality, security, and reliability a smart contract has. To get data (that powers all our current modern world, ie any API that runs your applications) onto the chain, we have to have an off-chain entity create a transaction on-chain with the data posted.

This process of posting data from the real world onto a blockchain is what oracles do.

There are a number of ways to do this. An example of an oracle would be a Chainlink node, where you can request any API call through the blockchain, and have it post the data on-chain.

Answered by Patrick Collins on November 15, 2021

Add your own answers!

Related Questions

truffle-contract cannot deploy in node js

1  Asked on December 30, 2020 by arpit-bharti


How to Fix “Stack Too Deep” Error?

4  Asked on December 29, 2020 by jeffrey-liang


Can the Geth password be cracked

1  Asked on December 28, 2020


web3 ens library – purpose of setText, getText against ENS name

1  Asked on December 27, 2020 by turbanman


eth.sendTransaction successful or not?

2  Asked on December 25, 2020 by askingtoomuch


Ethereum Wallet stuck pending transaction

1  Asked on December 25, 2020 by wga


How to add a field to a struct dynamically?

1  Asked on December 24, 2020 by alireza-zojaji


Can one ERC721 have two type NFT?

0  Asked on December 22, 2020 by shubham-singh


Front running, events, off-chain and on-chain

2  Asked on December 22, 2020 by ceds


How do we get latest value of a key from blockchain?

3  Asked on December 17, 2020 by madan


Trouble while installing truffle-contract module

1  Asked on December 14, 2020 by akshat


Ask a Question

Get help from others!

© 2021 All rights reserved.