Dec 21, 2023
Photo by Steve Johnson on Unsplash
Chainlink is a platform that allows the blockchain to communicate with the outside world. It acts as a bridge between the secure but isolated world of blockchain and the external dynamic world of real-world data.
This is a valid question. Think of the most popular cryptocurrency in the world; you'll be right if you guess Bitcoin . Bitcoin blockchain doesn't allow direct communication with the external world, and why would it? All the data that it needs is there on-chain. For example, the most important function of Bitcoin was to dissolve the boundaries between users worldwide. One can send the Bitcoin to anyone without having to explain anything. So all that matters is transactions, which are stored on-chain in any way.
Bitcoin blockchain primarily focuses on recording transactions and maintaining a secure and tamper-proof ledger of who owns what Bitcoin, and that's it! No fancy stuff is allowed. But things changed when we moved to Ethereum. When Ethereum launched, one of the biggest selling points was its ability to execute programs on-chain called smart contracts. One can deploy any logic, such as sending 1 ETH to Ram when the ETH price exceeds $3000. ETH blockchain was Turing complete, unlike Bitcoin.
But as we know, "With Great Power Comes Great Responsibility." Soon, the contracts required to access the external data to be meaningful. Think of what the contracts can do if they only have access to transactions. Not much. They need to have access to the outside world data.
Before Chainlink, smart contracts were limited to information available on the blockchain itself, which is inherently restricted. This meant they couldn't react to real-world events, access real-time data like weather or economic figures, or interact with traditional payment systems.
Here's how things used to work:
Chainlink gave smart contracts the power they always lacked. It made them alive. To know what smart contracts are in detail, you can refer to this article:
Smart contracts are digital contracts or programs, a set of instructions stored on a blockchain that is automatically executed when predetermined terms and conditions are met.
Let's understand the importance of Chainlink via an example. Let's say you are an avid traveler eagerly awaiting your next trip to Japan. You've booked your flights, packed your bags, and excitedly counted the days. But what happens when unexpected delays throw your itinerary into chaos? This is where FlightDelay, a decentralized insurance protocol powered by Chainlink, comes to the rescue.
Here's the problem that we all face: travel insurance, let's be honest, comes with complex terms, hidden fees, and lengthy claim processes. They often reject your claims when you need them the most with some obscure statement you have never heard of while taking the Insurance.
Delays and cancellations can leave you frustrated and out of pocket while navigating complicated claim forms and waiting weeks for resolution, adding salt to the injury.
FlightDelay's Solution with Chainlink: Here's how FlightDelay rewrites the rules:
Chainlink's role in FlightDelay showcases its potential to revolutionize the insurance industry. Similar decentralized insurance protocols are emerging for various scenarios, including weather-related crop losses, health insurance triggered by biometric data, and even parametric Insurance for natural disasters.
All this was made possible because of Chainlink. This is just one example of how Chainlink is actively used today; different fields, such as financial services, DeFi, gaming, NFT collectibles, climate markets, Insurance, etc., heavily rely on Chainlink for the correct data.
Showcasing how the Real World data is brought on-chain using chainlink oracle network
Let's first understand about the components of Chainlink. At its very core, we have what is called Chainlink Core. It's an open-source software that serves as the foundation, enabling smart contracts to interact with external data sources through Chainlink requests.
This software is run by the nodes called Decentralized Oracle Network or DON. They are a dynamic pool of independent nodes called oracles that compete to fulfill data requests, ensuring competition and data integrity. Each node runs Chainlink software and possesses the ability to connect to and retrieve data from external sources. The Chainlink Core software enables the nodes to:
But how do we know that the particular node is not cheating? Or manipulating the data itself? Well, for this, we have Security Infrastructure. It includes:
Now that we have covered all the significant components let's bind everything together and understand the complete flow:
Chainlink oracles can connect to a vast array of off-chain data sources, including APIs, databases, sensors, and real-world devices. Also, LINK, the native token of Chainlink, incentivizes Oracle nodes to participate in the network and fulfill data requests.
I hope this detailed explanation provides a comprehensive understanding of how Chainlink functions. Thank you.
References:
Subscribe to the newsletter to learn more about the decentralized web, AI and technology.
Please be respectful!