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

You might be interested in

LEAVE YOUR COMMENT

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

tether
Tether (USDT) 0,824818 0,28%
usd-coin
USD Coin (USDC) 0,827435 0,49%
zcash
Zcash (ZEC) 98,73 7,48%
tezos
Tezos (XTZ) 2,98 7,05%
uniswap
Uniswap (UNI) 22,61 4,47%
bitcoin
Bitcoin (BTC) 39.530,71 6,64%
bitcoin-cash
Bitcoin Cash (BCH) 413,66 6,89%
ethereum
Ethereum (ETH) 1.263,70 5,58%
litecoin
Litecoin (LTC) 148,16 6,27%
dash
Dash (DASH) 173,66 7,60%
cardano
Cardano (ADA) 0,918453 10,74%
chainlink
Chainlink (LINK) 22,86 9,67%
compound-governance-token
Compound (COMP) 381,73 9,16%
cosmos
Cosmos (ATOM) 15,46 4,84%
dai
Dai (DAI) 0,827435 0,16%
monero
Monero (XMR) 178,09 2,08%
omisego
OMG Network (OMG) 3,81 5,43%
polkadot
Polkadot (DOT) 28,91 5,73%
siacoin
Siacoin (SC) 0,008519 3,64%
stellar
Stellar (XLM) 0,337796 4,61%