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

(Visited 95 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

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

eos
EOS (EOS) 0,755121 13,45%
aave
Aave (AAVE) 84,45 0,11%
the-graph
The Graph (GRT) 0,246818 1,86%
kusama
Kusama (KSM) 27,73 1,37%
waves
Waves (WAVES) 2,24 0,58%
dash
Dash (DASH) 28,46 1,27%
bitcoin
Bitcoin (BTC) 60.084,24 0,20%
ethereum
Ethereum (ETH) 2.939,40 0,07%
cardano
Cardano (ADA) 0,438884 1,04%
tether
Tether (USDT) 0,935560 0,03%
xrp
XRP (XRP) 0,489780 0,01%
solana
Solana (SOL) 134,51 1,58%
polkadot
Polkadot (DOT) 6,41 0,85%
usd-coin
USDC (USDC) 0,934544 0,15%
dogecoin
Dogecoin (DOGE) 0,140293 0,52%
uniswap
Uniswap (UNI) 7,30 1,25%
terra-luna
Terra Luna Classic (LUNC) 0,000101 4,18%
litecoin
Litecoin (LTC) 78,80 2,32%
chainlink
Chainlink (LINK) 13,63 0,26%
bitcoin-cash
Bitcoin Cash (BCH) 444,02 0,84%
algorand
Algorand (ALGO) 0,184144 2,84%
matic-network
Polygon (MATIC) 0,678219 2,54%
stellar
Stellar (XLM) 0,105941 0,59%
cosmos
Cosmos Hub (ATOM) 7,75 1,85%
filecoin
Filecoin (FIL) 5,54 1,14%
tron
TRON (TRX) 0,109446 2,84%
ethereum-classic
Ethereum Classic (ETC) 24,58 0,48%
dai
Dai (DAI) 0,934321 0,04%
tezos
Tezos (XTZ) 0,939298 0,53%
monero
Monero (XMR) 112,94 2,73%