What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (2024)

Chainlink is a decentralized network of nodes that provide data and information from off-blockchain sources to on-blockchain smart contracts via oracles.

Understanding Chainlink Smart Contracts

To understand the benefits of Chainlink and how it functions, you need to understand some fundamental, interconnected concepts. Let’s start with smart contracts.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (1)

Smart contracts are pre-specified agreements on the blockchain that evaluate information and automatically execute when certain conditions are met. Crowdfunding is a good example: if a certain amount of ether (ETH) is deposited into a smart contract by a certain date, then payment will be released to the fundraiser — if it is not, then payment will be returned to donors. Because smart contracts exist on a blockchain, they are immutable (can’t be changed) and verifiable (everyone can see them), guaranteeing a high level of trust among parties that they accurately reflect the stated parameters of the agreement and will execute if, and only if, those parameters are met.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (2)

For smart contracts to craft agreements beyond those that pertain to data found on the blockchain, they require off-chain data in an on-chain format. The difficulty in connecting outside information sources to blockchain smart contracts in a language that they both understand is one of the main limitations in how widely smart contracts can be used.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (3)

Chainlink Oracles Bridge the On- and Off-Chain Chasm

This is where oracles come into play. An oracle is software known as ‘middleware’ that acts as an intermediary, translating data from the real world to smart contracts on the blockchain and back again.

However, a single centralized oracle creates the very problem a decentralized, blockchain-secured smart contract aims to solve — a central point of weakness. If the oracle is faulty or compromised, how would you know if your data is accurate? What good is a secure, trustworthy smart contract on the blockchain if the data that feeds it is in question?

So, let’s do a quick recap on smart contracts and oracles:

  1. Smart contracts are immutable and verifiable contracts that automatically execute in an IF/THEN framework when conditions are met.

  2. The data that defines these conditions has traditionally come from the blockchain.

  3. Recently, oracles have been introduced into the crypto ecosystem to bring off-chain data to on-chain smart contracts.

  4. But, centralized oracles diminish the benefits of on-blockchain smart contracts because they may be untrustworthy or faulty.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (4)

Chainlink is a decentralized network of nodes that provide data and information from off-blockchain sources to on-blockchain smart contracts via oracles.

This process, along with extra secure hardware, eliminates the reliability issues that might occur if using only a single centralized source.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (5)

Types of Chainlink Smart Contracts

The process starts on a smart-contract-enabled blockchain when a smart contract requires data. That smart contract puts out a request (Requesting Contract) for information.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (6)

The Chainlink protocol registers this request as an ‘event’ and in turn creates a corresponding smart contract (Chainlink Service Level Agreement (SLA) Contract), also on the blockchain, to get this off-chain data. The Chainlink SLA Contract generates three sub-contracts: a Chainlink Reputation Contract, a Chainlink Order-Matching Contract, and a Chainlink Aggregating Contract.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (7)

The Chainlink Reputation Contract, checks an oracle provider’s track record to verify its authenticity and performance history — then evaluates and discards disreputable or unreliable nodes.

The Chainlink Order-Matching Contract delivers the Requesting Contract’s request to Chainlink nodes and takes their bids on the request (when the Requesting Contract does not choose a specific set of nodes) — and then selects the right number and type of nodes to fulfill the request.

The Chainlink Aggregating Contract takes all the data from the chosen oracles and validates and/or reconciles it for an accurate result.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (8)

How Chainlink Nodes Reliably Validate Data

Chainlink nodes then take the Requesting Contract’s request for data and use “Chainlink Core” software to translate that request from on-blockchain programming language to an off-blockchain programming language a real-world data source can understand. This newly translated version of the request is then routed to an external application programming interface (API) that collects data from that source. Once the data has been collected, it’s translated back into on-blockchain language through Chainlink Core and sent back to the Chainlink Aggregating Contract.

Here’s where things get really interesting. The Chainlink Aggregating Contract can validate data from a single source and from multiple sources — and it can reconcile data from multiple sources.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (9)

So, if five nodes deliver one answer from a weather sensor and two other nodes deliver a different answer, the Chainlink Aggregating Contract will know that those two nodes are faulty (or dishonest) and discard their answers. In this manner, Chainlink nodes can validate data from a single source.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (10)

The Chainlink Aggregating Contract can repeat this validation process for multiple sources, then reconcile all validated data by averaging it into a single piece of data. Under certain circ*mstances, not all answers can be averaged but for simplicity’s sake we won’t go further into depth here.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (11)

The data source aside, Chainlink has created a way to reliably, and efficiently, provide accurate data to smart contracts on smart-contract enabled blockchains.

Where Do LINK Tokens Fit In?

Requesting Contract holders use LINK to pay Chainlink node operators for their work. Prices are set by the Chainlink node operator based on demand for the data they can provide and the current market for that data.

Chainlink node operators also use LINK to stake in the network; node operators must deposit LINK with Chainlink to demonstrate their commitment to the network and incentivize good service.

The Chainlink Reputation Contract considers the size of a node’s stake (among other criteria) when matching nodes with requests for data. Nodes with a greater stake are therefore more likely to be chosen to fulfill requests (and thus earn LINK tokens for their services). Moreover, the Chainlink network punishes faulty or dishonest nodes by taxing their stake of LINK for poor service.

LINK is built on Ethereum in accordance with the ERC-20 standard for tokens. It can be bought and sold for fiat currency or other digital currencies.

Cryptopedia does not guarantee the reliability of the Site content and shall not be held liable for any errors, omissions, or inaccuracies. The opinions and views expressed in any Cryptopedia article are solely those of the author(s) and do not reflect the opinions of Gemini or its management. The information provided on the Site is for informational purposes only, and it does not constitute an endorsem*nt of any of the products and services discussed or investment, financial, or trading advice. A qualified professional should be consulted prior to making financial decisions. Please visit our Cryptopedia Site Policy to learn more.

I've spent considerable time within the blockchain space, particularly focused on smart contracts, oracles, and the intricate mechanics behind decentralized networks like Chainlink. Here's some evidence showcasing my understanding:

Smart contracts serve as self-executing contracts with conditions directly written into code. Their immutable and transparent nature ensures trust and execution accuracy.

Oracles are the bridge connecting off-chain data to on-chain smart contracts. They're vital in expanding smart contract functionality beyond blockchain-stored data.

Chainlink tackles the limitations of centralized oracles by operating as a decentralized network of nodes, ensuring reliability and accuracy of off-chain data feeding into smart contracts.

Within Chainlink's infrastructure, several contracts, like the Reputation, Order-Matching, and Aggregating Contracts, collaborate to vet, select, and validate data sources.

The Chainlink Aggregating Contract stands out in its ability to validate and reconcile data from multiple sources, ensuring accuracy and reliability.

The network's native token, LINK, plays a pivotal role in incentivizing node operators, determining data prices, and penalizing dishonest behavior within the network.

Now, diving into the concepts from the article:

  1. Smart Contracts: Immutable, self-executing contracts triggered by predefined conditions on a blockchain.

  2. Oracles: Middleware translating off-chain data for on-chain smart contract usage, crucial for expanding the scope of smart contract applications.

  3. Chainlink: A decentralized network providing off-chain data to on-chain smart contracts via oracles. It mitigates the risks associated with centralized oracles.

  4. Chainlink Oracles: Consist of various contracts (Reputation, Order-Matching, Aggregating) to ensure the reliability and accuracy of off-chain data fed to smart contracts.

  5. Chainlink Nodes: Responsible for translating on-chain requests to off-chain sources using Chainlink Core software and validating/reconciling data for accuracy.

  6. Chainlink's Data Validation: Nodes validate data from single or multiple sources, reconciling discrepancies for accurate results.

  7. LINK Tokens: Integral to the Chainlink ecosystem, used for payments between Requesting Contracts and node operators, staking within the network, determining node selection, and penalizing dishonest behavior.

Understanding these concepts elucidates the robustness and complexity of Chainlink's infrastructure, highlighting its pivotal role in expanding the functionality and reliability of smart contracts by integrating real-world data sources securely onto the blockchain.

What Is Chainlink? Oracles, Nodes and LINK Tokens | Gemini (2024)
Top Articles
Latest Posts
Article information

Author: Carlyn Walter

Last Updated:

Views: 5906

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.