Best of Crypto

Best of Crypto

1658375760

Chainlink 1Forge External Adapter

Input Params

  • base or to: The target currency to query (required)
  • quote or from: The currency to convert to (required)
  • endpoint: The endpoint to call (optional)

Output

{
 "jobRunID": "1",
 "data": {
  "value": 1.22687,
  "text": "1.0 GBP is worth 1.22687 USD",
  "timestamp": 1587489920,
  "result": 1.22687
 },
 "result": 1.22687,
 "statusCode": 200
}

Install

yarn

Test

yarn test

Create the zip

zip -r cl-1forge.zip .

Docker

If you wish to use Docker to run the adapter, you can build the image by running the following command:

docker build . -t 1forge-adapter

Then run it with:

docker run -p 8080:8080 -e API_KEY='YOUR_API_KEY' -it 1forge-adapter:latest

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 12.x for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-1forge.zip file
  • Handler should remain index.handler
  • Add the environment variable (repeat for all environment variables):
    • Key: API_KEY
    • Value: Your_API_key
  • Save

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-1forge.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice
  • Click More, Add variable (repeat for all environment variables)
    • NAME: API_KEY
    • VALUE: Your_API_key

Download Details:
Author: smartcontractkit
Source Code: https://github.com/smartcontractkit/1forge-adapter
License: MIT license

#smartcontract #blockchain #oracle #chainlink

What is GEEK

Buddha Community

Chainlink 1Forge External Adapter
Best of Crypto

Best of Crypto

1658375760

Chainlink 1Forge External Adapter

Input Params

  • base or to: The target currency to query (required)
  • quote or from: The currency to convert to (required)
  • endpoint: The endpoint to call (optional)

Output

{
 "jobRunID": "1",
 "data": {
  "value": 1.22687,
  "text": "1.0 GBP is worth 1.22687 USD",
  "timestamp": 1587489920,
  "result": 1.22687
 },
 "result": 1.22687,
 "statusCode": 200
}

Install

yarn

Test

yarn test

Create the zip

zip -r cl-1forge.zip .

Docker

If you wish to use Docker to run the adapter, you can build the image by running the following command:

docker build . -t 1forge-adapter

Then run it with:

docker run -p 8080:8080 -e API_KEY='YOUR_API_KEY' -it 1forge-adapter:latest

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 12.x for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-1forge.zip file
  • Handler should remain index.handler
  • Add the environment variable (repeat for all environment variables):
    • Key: API_KEY
    • Value: Your_API_key
  • Save

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-1forge.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice
  • Click More, Add variable (repeat for all environment variables)
    • NAME: API_KEY
    • VALUE: Your_API_key

Download Details:
Author: smartcontractkit
Source Code: https://github.com/smartcontractkit/1forge-adapter
License: MIT license

#smartcontract #blockchain #oracle #chainlink

Best of Crypto

Best of Crypto

1658361060

Chainlink CoinPaprika External Adapter

Input Params

  • coinid: The CoinPaprika id of the coin to query (required if not using from)
  • base, from, or coin: The ticker of the coin to query (required if not using coinid)
  • quote, to, or market: The currency to convert the coin to (required)

Output Format

{
 "jobRunID": "278c97ffadb54a5bbb93cfec5f7b5503",
 "data": {
  "id": "eth-ethereum",
  "name": "Ethereum",
  "symbol": "ETH",
  "rank": 2,
  "circulating_supply": 109469522,
  "total_supply": 109469556,
  "max_supply": 0,
  "beta_value": 1.04048,
  "last_updated": "2020-01-28T21:56:03Z",
  "quotes": {
   "USD": {
    "price": 173.00001891,
    "volume_24h": 8256159044.3763,
    "volume_24h_change_24h": 2.54,
    "market_cap": 18938229376,
    "market_cap_change_24h": 0.93,
    "percent_change_1h": 0.27,
    "percent_change_12h": 1.04,
    "percent_change_24h": 0.92,
    "percent_change_7d": 2.18,
    "percent_change_30d": 27.49,
    "percent_change_1y": 64.2,
    "ath_price": 1432.88,
    "ath_date": "2018-01-13T21:04:00Z",
    "percent_from_price_ath": -87.93
   }
  },
  "result": 173.00001891
 },
 "result": 173.00001891,
 "statusCode": 200
}

Install

yarn

Test

yarn test

Create the zip

zip -r cl-coinpaprika.zip .

Run with Docker

docker build . -t coinpaprika-adapter
docker run -d \
    -p 8080:8080 \
    -e EA_PORT=8080 \
    coinpaprika-adapter

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 12.x for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-coinpaprika.zip file
  • Handler should remain index.handler
  • Save

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-coinpaprika.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice

Download Details:
Author: smartcontractkit
Source Code: https://github.com/smartcontractkit/coinpaprika-adapter
License: MIT license

#smartcontract #blockchain #oracle #chainlink

Best of Crypto

Best of Crypto

1658309820

Chainlink Binance External Adapter

This external adapter uses the unauthenticated endpoints for connecting to the Binance Exchange API.

Input Params

  • endpoint: The endpoint of the API to query
  • symbol: The symbol to query. Will default to "ETHUSDT" if unspecified and required by the endpoint.

Install

npm install

Test

npm test

Create the zip

zip -r cl-binance.zip .

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 8.10 for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-binance.zip file
  • Handler should remain index.handler
  • Save

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-binance.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice

Download Details:
Author: smartcontractkit
Source Code: https://github.com/smartcontractkit/binance-adapter
License: MIT license

#smartcontract #blockchain #oracle #chainlink #javascript

Best of Crypto

Best of Crypto

1658353740

Chainlink CoinApi External Adapter

Input Params

  • base, from, or coin: The coin to query (required)
  • quote, to, or market: The currency to convert to (required)

Output Format

{
 "jobRunID": "1",
 "data": {
  "time": "2020-04-15T14:24:15.3834439Z",
  "asset_id_base": "ETH",
  "asset_id_quote": "USD",
  "rate": 159.1132487376848,
  "result": 159.1132487376848
 },
 "result": 159.1132487376848,
 "statusCode": 200
}

Install

yarn install

Test

yarn test

Create the zip

zip -r cl-coinapi.zip .

Docker

If you wish to use Docker to run the adapter, you can build the image by running the following command:

docker build . -t coinapi-adapter

Then run it with:

docker run -p 8080:8080 -e API_KEY='YOUR_API_KEY' -it coinapi-adapter:latest

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-coinapi.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice
  • Click More, Add variable
    • NAME: API_KEY
    • VALUE: Your_API_key

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 12.x for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-coinapi.zip file
  • Handler should remain index.handler
  • Add the environment variable:
    • Key: API_KEY
    • Value: Your_API_key
  • Save

Download Details:
Author: smartcontractkit
Source Code: https://github.com/smartcontractkit/coinapi-adapter
License: MIT license

#smartcontract #blockchain #oracle #chainlink #javascript

Best of Crypto

Best of Crypto

1658317140

Chainlink External Adapter for AlphaVantage

This adapter has moved to our external adapters monorepo!

Input params

  • function: (Optional) The function to call (defaults to CURRENCY_EXCHANGE_RATE)
  • base, from, or coin: The asset to query
  • quote, to, or market: The currency to convert to

Output

{
 "jobRunID": "1",
 "data": {
  "Realtime Currency Exchange Rate": {
   "1. From_Currency Code": "ETH",
   "2. From_Currency Name": "Ethereum",
   "3. To_Currency Code": "USD",
   "4. To_Currency Name": "United States Dollar",
   "5. Exchange Rate": "170.88000000",
   "6. Last Refreshed": "2020-04-16 19:15:01",
   "7. Time Zone": "UTC",
   "8. Bid Price": "170.84000000",
   "9. Ask Price": "170.88000000"
  },
  "result": 170.88
 },
 "result": 170.88,
 "statusCode": 200
}

Install

yarn

Test

yarn test

Create the zip

zip -r cl-alphavantage.zip .

Docker

If you wish to use Docker to run the adapter, you can build the image by running the following command:

docker build . -t alphavantage-adapter

Then run it with:

docker run -p 8080:8080 -e API_KEY='YOUR_API_KEY' -it alphavantage-adapter:latest

Install to AWS Lambda

  • In Lambda Functions, create function
  • On the Create function page:
    • Give the function a name
    • Use Node.js 12.x for the runtime
    • Choose an existing role or create a new one
    • Click Create Function
  • Under Function code, select "Upload a .zip file" from the Code entry type drop-down
  • Click Upload and select the cl-alphavantage.zip file
  • Handler should remain index.handler
  • Add the environment variable (repeat for all environment variables):
    • Key: API_KEY
    • Value: Your_API_key
  • Save

Install to GCP

  • In Functions, create a new function, choose to ZIP upload
  • Click Browse and select the cl-alphavantage.zip file
  • Select a Storage Bucket to keep the zip in
  • Function to execute: gcpservice
  • Click More, Add variable (repeat for all environment variables)
    • NAME: API_KEY
    • VALUE: Your_API_key

Download Details:
Author: smartcontractkit
Source Code: https://github.com/smartcontractkit/alphavantage-adapter
License: MIT license

#smartcontract #blockchain #oracle #chainlink