What are Oracles?
An oracle is a data feed or a search agent used by a smart contract to obtain information outside its native blockchain. Using a web API interface, it can communicate with news websites, traditional databases, other blockchains and their DApps, and much more.
Without an oracle, a smart contract would only work for situations where all the needed information to be executed was found on the blockchain it resides on. For example, without an oracle, an Ethereum smart contract could not move funds based on the price of Bitcoin.
If a smart contract wants to trigger conditions that exist outside their native blockchain, it needs an oracle to communicate with third parties on the internet to find what it needs. For instance, let’s say that there is a smart contract that says Joe will get 100 ETH if the Chicago Cubs win the World Series. Well, it needs some way to identify the Chicago Cubs, track baseball scores, and news. That’s where an oracle comes in. The oracle will track and deliver that information to the smart contract at the appropriate time the World Series is played.
Allowing blockchains to communicate with the outside world and fetch the data they need is critical to their function. Imagine having an Excel spreadsheet, where you have the prices of the top 10 flavors of 2L bottles of soda. You want the real-time prices but you can’t be bothered to look online and enter in the price manually every day. If only you had a snippet of code to fetch it for you! That’s what an oracle does for a smart contract. Without them, a smart contract is just a bloated “if, then; else” statement.
There are different types of oracles that serve different purposes:
For more info listen to this episode or read the full article here:
https://cryptofinance24.com/what-are-oracles-p423-171.htm
Listen to Crypto and Blockchain Talk for more interesting topics! If you like this episode, give us 5 stars in iTunes or Stitcher,
Thank you for listening! Crypto and Blockchain Talk - Making You Smarter
SUBSCRIBE to our social channels and never miss an episode:
SPOTIFY iTunes Stitcher Soundcloud Google Play Music
Tunein Castbox Pocket Casts Overcast iHeartRadio PlayerFM YouTube
Podchaser is the ultimate destination for podcast data, search, and discovery. Learn More