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 37 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

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

kusama
Kusama (KSM) 284,96 6,98%
compound-governance-token
Compound (COMP) 291,98 8,90%
dash
Dash (DASH) 141,96 10,00%
zcash
Zcash (ZEC) 94,70 10,24%
yearn-finance
yearn.finance (YFI) 25.053,99 6,33%
bitcoin
Bitcoin (BTC) 36.589,13 4,85%
ethereum
Ethereum (ETH) 2.506,97 7,04%
tether
Tether (USDT) 0,853570 0,02%
cardano
Cardano (ADA) 1,95 2,49%
xrp
XRP (XRP) 0,804299 5,92%
dogecoin
Dogecoin (DOGE) 0,179247 7,37%
polkadot
Polkadot (DOT) 26,84 5,66%
usd-coin
USD Coin (USDC) 0,853570 0,16%
uniswap
Uniswap (UNI) 16,85 8,61%
bitcoin-cash
Bitcoin Cash (BCH) 438,76 7,32%
chainlink
Chainlink (LINK) 19,91 8,26%
matic-network
Polygon (MATIC) 0,964534 8,28%
solana
Solana (SOL) 119,50 7,08%
litecoin
Litecoin (LTC) 130,07 8,09%
stellar
Stellar (XLM) 0,241517 7,50%
ethereum-classic
Ethereum Classic (ETC) 40,82 7,75%
eos
EOS (EOS) 3,46 7,63%
tron
TRON (TRX) 0,079213 6,84%
filecoin
Filecoin (FIL) 54,12 15,14%
aave
Aave (AAVE) 240,25 9,17%
monero
Monero (XMR) 200,54 5,41%
dai
Dai (DAI) 0,853570 0,16%
tezos
Tezos (XTZ) 6,08 13,11%
cosmos
Cosmos (ATOM) 36,50 2,23%
algorand
Algorand (ALGO) 1,52 10,32%