Back to Course

2. Intermediate Course

0% Complete
0/0 Steps
  1. 1. Ethereum 2.0 - What is it? 
  2. 2. What is cryptocurrency burning?
  3. 3. How to create your own cryptocurrency? 
  4. 4. Blockchain Oracle - what are oracles? 
  5. 5. How to make money with NFT?
  6. 6. What is an ERC20 token and how is it created?
  7. 7. The Metaverse – a new virtual world
  8. 8. Metaverse – TOP 15 virtual reality projects
  9. 9. Technical analysis – is it worth using?
  10. 10. What are DeFi liquidity pools?
  11. 11. Second layer (layer 2) - what is it? 
  12. 12. What are wrapped tokens 
  13. 13. What is the Lightning Network, and how does it work?
  14. 14. What are security tokens?
  15. 15. What is Play-to-Earn (P2E) and how does it work?
  16. 16. What are Social Tokens? 
  17. 17. Examples of the use of WEB3 on the blockchain
  18. 18. What is Web5? 
  19. 19. Ethereum London Hard Fork - what is it ? 
  20. 20. Segregated Witness - what is Segwit Bitcoin all about?
  21. 21. Polkadot - Decentralized blockchain and DOT cryptocurrency
  22. 22. Polkadot Parachain - Next-generation blockchain
  23. 23. Trading order types: stop loss, trailing stop loss, LIMIT
  24. 24. Set up of Stop Loss and Take Profit orders
  25. 25. What are Decentralized Cryptocurrency DEX Exchanges?
  26. 26. What is Curve Finance?
  27. 27. What is GameFi and how does it work?
  28. 28. Non-fungible tokens and NFT exchanges
  29. 29. Cryptocurrency steps - What is move to earn M2E?
  30. 30. What is Proof of Reserves (PoR)? How does it work?
  31. 31. Interoperability in the world of cryptocurrencies and blockchain
  32. 32. Blockchain and its layers - What is layer three in Blockchain (L3)?
  33. 33. What is Layer 0 in Blockchain technology?
  34. 34. What is layer 1 in Blockchain?
  35. 35. What is MakerDAO and DAI Stablecoin?
  36. 36. What is Blockchain sharding?
  37. 37. What is the NFT licence fee?
  38. 38. What is the SubDAO protocol, and how does it work?
  39. 39. The main differences between static NFT and dynamic NFT
  40. 40. What is minting an NFT?
  41. 41. Mainnet versus Testnet on the Blockchain. The complete guide!
  42. 42. What are NFT Ordinals? A guide to Bitcoin NFT.
  43. 43. Market Cap versus Fully Diluted Market Cap - the most important differences you should know!
  44. 44. MINA Protocol: the lightest blockchain in the world!
  45. 45. NFT Gas Fee - what is it? How can you reduce your gas fee?
  46. 46. Liquidity Provider Tokens (LPs). What are they, and why are they so important?
  47. 47. What is KnowOrigin NFT, and how does it work?
  48. 48. What is decentralized social media?
  49. 49. What is the Ethereum Name Service (ENS) and how does it work?
  50. 50. Arbitrum: Ethereum scaling solution - everything you need to know
  51. 51. Ethereum ERC-4337 - what is it and how does this standard work?
  52. 52. Sustainable Blockchain - Proof of Useful Work & Flux
  53. 53. Ethereum Proof-of-Stake (PoS) - what should you know?
  54. 54. Atomic Swap: What is an atomic swap, and how does it work with cryptocurrencies?
  55. 55. What Is Cryptocurrency Vesting? What Are Its Advantages?
  56. 56. What Is the Metaplex Candy Machine Protocol? How Does It Work?
  57. 57. What Is the BNB Greenfield Ecosystem?
  58. 58. Real Yield in DeFi - what is this trend? What does it consist of?
  59. 59. What Is Slashing in Cryptocurrencies?
  60. 60. How to Create Your Own Decentralized Autonomous Organization (DAO)?
  61. 61. The ERC-721X VS ERC-721 Standard – Key Differences!
  62. 62. Royalties – What Are They? How Does This Type of Licensing Fee Work?
  63. 63. Polygon 2.0 - the value layer for the Internet
  64. 64. ERC-6551 - the new NFT standard. What does it bring to the non-exchangeable token sector?
  65. 65. What is TradFi? The importance for cryptocurrencies!
  66. 66. What is the Real World Asset (RWA) trend in cryptocurrencies? Explanation and examples!
  67. 67. Pyth Network: a powerful oracle harnessing the power of Solana!
  68. 68. Vampire Attacks in Decentralized Finance (DeFi): Explanation and Examples
  69. 69. What are stables in the world of cryptocurrencies?
  70. 70. What Is Binance Oracle?
  71. 71. What is NFT Lending all about? An innovative solution in the world of cryptocurrencies!
  72. 72. Shibarium: A new era in the Shiba Inu ecosystem?
  73. 73. What is an ETF? How will an exchange-traded fund on bitcoin work?
  74. 74. Symmetric and asymmetric encryption - key cryptography techniques!
  75. 75. Cosmos SDK: Building the Blockchain Ecosystem
  76. 76. DAO Investment: A revolution in the world of finance and investment
  77. 77. What is cross-chain interoperability in Blockchain technology?
  78. 78. Blockchain trilemma - explanation of the problem. What is the impact on cryptocurrency payments?
  79. 79. Hedging in cryptocurrencies - great portfolio protection against risk!
Lesson 4 of 79
In Progress

4. Blockchain Oracle – what are oracles? 

Blockchain oracles play a crucial role in the entire cryptocurrency ecosystem. They are third-party services that provide smart contracts with outside information.  This will certainly be easier for Marvel fans to understand. Do you remember Heimdall? He guarded the Bifrost and saw and heard everything that was going on in the world and  delivering news to the Asgardians. Heimdall is a kind of blockchain oracle (Oracle) and Asgard is smart contracts.

Blockchain oracle

Blockchains and smart contracts have no access to information outside their network. And this is where oracles appear. It is a link that connects data from outside the blockchain with that in the blockchain. Oracles increase the range of what smart contracts can do. Without them, smart contracts would be limited and would only base their operation on data from the blockchain. Thus, they would not be reliable. Oracles transmit a variety of information: transaction data, payment completion, or even temperature readings.

At this point, let highlight an important thing that you must remember. An oracle is not a data source. It is a kind of filter for the information that flows into the ecosystem. It verifies and authenticates external data. Interestingly, some of them, in addition to sending information to contracts, can also send it back to external sources. 

As it happens in the world of cryptocurrencies – we have many types of oracles. Depending on how they are designed, this is how they will work. Get your notepad ready, stay focused. We invite you to read on. 

Why were oracles created? 

As we mentioned, oracles connect data from the outside world to the blockchain ecosystem. In professional terms, we call this the off-chain and on-chain world. As you know, some blockchains have their native cryptocurrencies, they are used for transactions, protocol operations or to facilitate management. Others, such as Ethereum give us the ability to create a smart contract. Just to make it clear – smart contracts are computer programs that work entirely based on the blockchain protocol. They automatically perform certain actions under certain conditions. Their tasks are performed without the involvement of third parties and can implement virtually any contract.

Imagine you want to buy a car with your crypto. For such a sale, you create a simple smart contract. It works more or less like this: as person A, you send money to person B. Then ownership of the sale is transferred from person B to person A. As you can see for yourself, there are no middlemen involved in this transaction. In this example, data from outside the chain (external) can be proof of a successful payment or receipt. And at this point, like a knight on a white horse, the oracle’s step in. They search, verify and authenticate this external data and then pass it on to the blockchain. Such information is used to validate the smart contract. 

Have a look. We are betting on Iga Świątek’s match. You are convinced that Iga will win; we are convinced that she will lose. We set the amount of the prize and sign the contract. Then we lock our funds in smart contracts. How will he know whether Iga has won or, unfortunately, lost? The oracle will ask for a trusted API, which will pass such real information to the contract. It will then send the funds to the person who bet on the match correctly.

How are oracles integrated into smart contracts?

The addition of oracles is done through MultiSig contracts. These require multiple parties to sign a smart contract. It could be properly defined that people A and B want to process an exchange – but this should only be possible if certain conditions are met, for which data is provided by Oracle. Even if A and B execute a smart contract, it will only be executed if the condition is also met, which can be checked using oracle data.

Types of oracles

As we have already mentioned, oracles have different qualities and characteristics. You will encounter oracles:

  • Hardware-based, where individual contracts will need to interact with the real world. They are designed to obtain information from the real world and make it available according to the needs of smart contracts. Such data is provided by other devices used to read the data (e.g., barcode scanners). In this case, oracles play the role of a translator that translates the obtained information into a language understandable by smart contracts. 
  • Software oracles interact with online information sources. They then send them to the blockchain. The data comes from a variety of databases, servers, or online sites. Their advantage is that they transmit information in real time, thanks to a constant connection to the Internet. They are one of the most popular oracles.
  • Incoming oracles, whose task is to transmit information from the outside to smart contracts. Such an oracle informs the smart contract of what information has been recorded by an external sensor.
  • Outgoing, acting in analogy to the incoming Oracle. They are the ones that send data from contracts to the outside world. 
  • Centralized, which, as the name says, are controlled by a third party. It is the sole provider of data to smart contracts. This is very risky because the effectiveness of the execution of a given smart contract depends entirely on the third party. What’s more – centralized oracles are exposed to hacking attacks or deliberate, erroneous data transmission.
  • Decentralized ones that want to avoid any risk for the contractor at all costs. They don’t just rely on one source of information. In decentralized oracles, a smart contract sends a query to multiple oracles to determine the validity and accuracy of the data sought as precisely as possible.
  • Particular ones that are applicable to one specific contract. They are time-consuming and expensive to maintain because if we want to implement several contracts simultaneously, we must have the same number of oracles. 
  • Human oracles that confirm their identity using cryptographic evidence. Curiously, it is with these oracles that fraud and falsification of information is unlikely.

Credibility of the oracle

To maintain their credibility, oracles use many tips. First – they use many sources of data. This makes it unlikely that they will receive erroneous information. Tip two – they use many oracles to collect data. This eliminates points of failure, but there is a risk of receiving false sources of information. Tip three – incentive systems. To be sure that users involved in information collection are honest, oracles use a stake-slashing mechanism. If the work is done well – the user is rewarded with tokens.

Use of oracles

  1. Market prediction – Augur and Gnosis use crowd knowledge to know the future state of the market. In this case, knowledge is ‘captured’ using multiple oracles. 
  2. Insurance system – using oracles, we can purchase insurance. They also solve a major problem in this sector – fraud. 
  3. Stability of stablecoins – e.g. DAI uses oracles to check and monitor the price of Ethereum. 
  4. DeFi – oracles provide decentralized finance with reliable information, e.g., pricing.
  5. Shipments – oracles could effectively map the location of tracking shipments, replacing GPS systems.

Oracles – the problems 

You can see for yourself that oracles are an important component of the blockchain ecosystem. However, one of the problems with oracles is hacking attacks. Therefore, it is significant that in its design, the smart contract based on it is not compromised. Moreover, unfortunately, oracles are not subject to the security mechanisms that public blockchains provide.

Summary

Oracles are essential in the crypto industry. By connecting blockchain to the real world, they will effectively accelerate its global adoption. Users will then have confidence that smart contracts are operating safely and responsibly. They still have a long way to go, but with their help, there are sure to be many projects that will transform current industries.

Discover new projects with Kanga Exchange