Back to Course

2. Intermediate Course

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

17. 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.


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