Sunday, November 14, 2021

Getting started with Chainlink for developers

Chainlink Developer Resources: Chainlink offers developer the ability to use Oracles for writing hybrid smart contracts. Oracles are like blockchain middleware. Chainlink provide decentralized oracle networks, aiming to provide better crypto, randomness and security for data and DeFi apps.

Top Features:


It's important for blockchain to have deterministic values, which is great for reaching consensus, but real world apps often need variables - values that are changing, such as when querying a weather API. This is where Oracle comes it. Oracles fulfill the need to help blockchains connect with the real world while still providing decentralized infrastructure.
this is a keyword you will hear a lot getting started with Chainlink. 
What are oracles:
"mechanisms of blockchains, smart contracts have no built-in capabilities for interacting with external resources like data providers and API services as a means of verifying the outcome of real-world events happening outside the blockchain. This creates what is known as the blockchain oracle problem and represents one of the greatest limitations to representing everyday contracts on the blockchain. To overcome this lack of connectivity, hybrid smart contracts use oracles as middleware to retrieve external data inputs, push data outputs to external systems, and perform scalable off-chain computations. Not only do oracles serve as a two-way bridge between smart contracts and the outside world, but they also provide a security framework for protecting against any single point of failure such as data manipulation and downtime." - official doc

The business model of chainlink is fascinating, being the middleware of blockchain, serving such a crucial role, chainlink always can charge fees, and chainlink always gets paid. 

"Chainlink Price Feeds provide a large collection of streaming market data. Developers can currently integrate easy-to-deploy code to retrieve Price Feeds for crypto assets, commodities, FOREX, and more market data, opening up a huge number of potential applications. "

"Not just an endpoint, API, has to be decentralized to secure
Separate service, middle ware that lives on top of the chain
Oracle is responsible for connecting to the api of the outside world. 
If it is one point of failure, each to hack, easy to compromise." - zak ayesh developer advocate chainlink

Chainlink can do some stuff that blockchain won’t want to do or cannot do : random number, time keeper. Chainlink does this by using decentralized oracles, running hybrid smart contracts. Chainlink network aims to be trust-less : no need to rely on brands, big corp promises. 

Data feed: 

"Chainlink Data Feeds are the quickest way to connect your smart contracts to the real-world market prices of assets. For example, one use for data feeds is to enable smart contracts to retrieve the latest pricing data of an asset in a single call." 

data from different chains, and even real world data e.g. weather, e.g. retrieve the current ETH/USD price. Clients include top DeFi apps.

Data feed - contract addresses : 

Chainlink warns the data quality is important. Always check if you are using the best quality data feed.

Random number generation : 

Random number generation is often useful in blockchain development.

Programming language:

You will get experience with (no prior experience required): Solidity, Javascript with web3.js, Python with (if you prefer python > javascript)

Tutorials landing page:

Chainlink hackathon: 

There are many workshops and bootcamps to help you get started. View past winners

Massive alumni success. If won, can pitch to vc. resume builder. 

Chainlink use case

Read more ... 77+ Smart Contract Use Cases Enabled By Chainlink . Trivia knowledge: this post used to be called 44 ways, and now it is increased to 77 ways. More on chainlink use cases. 

Other roles/functions in the chainlink ecosystems: What brought you to Chainlink? A Integrate Price Feeds/Market Data/External APIs, B Integrate Verifiable Randomness (VRF), c Integrate Proof of Reserves, D Integrate Chainlink Keepers, E Build Cross-Chain Applications, F Become a Data Provider, G Become a Node Operator

Chainlink Starter Kit:
Chainlink Starter Kit has chainlink smart contract codes, and supports Hardhat, Brownie, Foundry etc. For more support: discord, documentation, stack overflow, Starter Kit. 

No comments:

Post a Comment

Data analysis

Data visualization of common math formula.