CL-EA-NodeJS-Template | template provides a basic framework | REST library
kandi X-RAY | CL-EA-NodeJS-Template Summary
kandi X-RAY | CL-EA-NodeJS-Template Summary
This template provides a basic framework for developing Chainlink external adapters in NodeJS. Comments are included to assist with development and testing of the external adapter. Once the API-specific values (like query parameters and API key authentication) have been added to the adapter, it is very easy to add some tests to verify that the data will be correctly formatted when returned to the Chainlink node. There is no need to use any additional frameworks or to run a Chainlink node in order to test the adapter.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CL-EA-NodeJS-Template
CL-EA-NodeJS-Template Key Features
CL-EA-NodeJS-Template Examples and Code Snippets
Community Discussions
Trending Discussions on CL-EA-NodeJS-Template
QUESTION
It seems that the external adapter has a maximum timeout of 3000ms. My query takes a while to run, and I need it to be 30000ms. Does anyone know if there is a parameter I can change or set either within the external adapter or within my chainlink node?
...ANSWER
Answered 2021-Jun-09 at 05:23If you look within the requester.js package (that should have installed after running npm install) you will find the following code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CL-EA-NodeJS-Template
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 external-adapter.zip file
Handler: index.handler for REST API Gateways index.handlerv2 for HTTP API Gateways
Add the environment variable (repeat for all environment variables): Key: API_KEY Value: Your_API_key
Save
Click Add Trigger
Select API Gateway in Trigger configuration
Under API, click Create an API
Choose HTTP API
Select the security for the API
Click Add
Click Add Trigger
Select API Gateway in Trigger configuration
Under API, click Create an API
Choose REST API
Select the security for the API
Click Add
Click the API Gateway trigger
Click the name of the trigger (this is a link, a new window opens)
Click Integration Request
Uncheck Use Lamba Proxy integration
Click OK on the two dialogs
Return to your function
Remove the API Gateway and Save
Click Add Trigger and use the same API Gateway
Select the deployment stage and security
Click Add
In Functions, create a new function, choose to ZIP upload
Click Browse and select the external-adapter.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
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page