Building and Using External Adapters – Chainlink Engineering Tutorials

Chainlink is an infrastructure designed to be unlimited in how customizable it can be. External adapters are open sourced packages that allows Chainlink nodes to transform and receive data however they like. With external adapters you can do:
1. API Authentication (keep private API password keys private)
2. Private, low latency, and/or high throughput off-chain computation to save gas.
3. Write data to other blockchains (interoperability).
4. Any desired functionality that isnÔÇÖt covered with the core adapters
This allows your solidity smart contracts to have access to data that they never would have before.

This video goes over:
1. What an external adapter is
2. How to build one
3. Who should host it
4. How to use one

Blog post: https://blog.chain.link/build-and-use-external-adapters/

Chainlink is a decentralized oracle network that enables smart contracts to securely access off-chain data feeds, web APIs, and traditional bank payments. Chainlink is critical to connecting the blockchain ecosystem to the rest of the world.

Code setup:
Install Yarn: https://classic.yarnpkg.com/en/docs/install/
Install nodejs: https://nodejs.org/en/download/
Nodejs External Adapter Template: https://github.com/PatrickAlphaC/CL-EA-NodeJS-Template
Nodejs External Adapter Template with the completed weather API code: https://github.com/PatrickAlphaC/openweathermap_cl_ea
External adapter documentation: https://docs.chain.link/docs/external-adapters
Learn more about Environment Variables: https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html

Remix (kovan) from ending:
https://remix.ethereum.org/#version=soljson-v0.6.6+commit.6c089d02.js&optimize=false&gist=f856530b20943e92ed6cc69c1285cdfe&evmVersion=null

Important Commands/APIs:
curl -X POST -H “content-type:application/json” “http://localhost:8080/” –data ‘{ “id”: 0, “data”: { “from”: “ETH”, “to”: “USD” } }’

API:
https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=USD

Node Listing Service:
Market.link: https://market.link/

APIs used:
OpenWeatherMap: https://openweathermap.org/
Alpha Vantage: https://www.alphavantage.co/
CryptoCompare: https://www.cryptocompare.com/

Learn more about Chainlink :
Documentation: https://docs.chain.link/docs/getting-started
Discord: https://discordapp.com/invite/aSK4zew – Very active and developer focused!
Website https://chain.link
Building DeFi Applications: https://defi.chain.link/
Twitter https://twitter.com/chainlink
Telegram https://t.me/chainlinkofficial

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 0,534405 ÔéČ 1,48%
aave
Aave (AAVE) 58,48 ÔéČ 0,46%
the-graph
The Graph (GRT) 0,081325 ÔéČ 0,90%
kusama
Kusama (KSM) 17,56 ÔéČ 0,17%
waves
Waves (WAVES) 1,44 ÔéČ 1,50%
dash
Dash (DASH) 25,07 ÔéČ 0,40%
bitcoin
Bitcoin (BTC) 24.507,12 ÔéČ 1,82%
ethereum
Ethereum (ETH) 1.478,64 ÔéČ 1,15%
cardano
Cardano (ADA) 0,229932 ÔéČ 0,23%
tether
Tether (USDT) 0,939044 ÔéČ 0,01%
xrp
XRP (XRP) 0,465146 ÔéČ 2,83%
solana
Solana (SOL) 18,30 ÔéČ 0,37%
polkadot
Polkadot (DOT) 3,79 ÔéČ 0,25%
usd-coin
USDC (USDC) 0,939150 ÔéČ 0,01%
dogecoin
Dogecoin (DOGE) 0,057036 ÔéČ 1,21%
uniswap
Uniswap (UNI) 3,97 ÔéČ 0,64%
terra-luna
Terra Luna Classic (LUNC) 0,000057 ÔéČ 0,42%
litecoin
Litecoin (LTC) 60,40 ÔéČ 0,62%
chainlink
Chainlink (LINK) 6,80 ÔéČ 1,80%
bitcoin-cash
Bitcoin Cash (BCH) 194,27 ÔéČ 0,93%
algorand
Algorand (ALGO) 0,094062 ÔéČ 1,05%
matic-network
Polygon (MATIC) 0,481357 ÔéČ 1,52%
stellar
Stellar (XLM) 0,104857 ÔéČ 1,37%
cosmos
Cosmos Hub (ATOM) 6,55 ÔéČ 1,11%
filecoin
Filecoin (FIL) 3,01 ÔéČ 1,36%
tron
TRON (TRX) 0,079038 ÔéČ 0,01%
ethereum-classic
Ethereum Classic (ETC) 14,25 ÔéČ 0,39%
dai
Dai (DAI) 0,939150 ÔéČ 0,02%
tezos
Tezos (XTZ) 0,613055 ÔéČ 1,43%
monero
Monero (XMR) 134,86 ÔéČ 0,48%