
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@appliedblockchain/chainlink-plugins-api-consumer
Advanced tools
Hardhat TypeScript plugin that interacts with chainlink api consumer contract.
A Hardhat plugin that interacts with the Chainlink API Consumer contract.
This plugin will help you read data from a Chainlink API Consumer and call functions to update the data.
To install this plugin use:
npm install @appliedblockchain/chainlink-plugins-api-consumer @nomiclabs/hardhat-ethers --save
Import the plugin in your hardhat.config.js
:
require("@appliedblockchain/chainlink-plugins-api-consumer");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "@appliedblockchain/chainlink-plugins-api-consumer";
This plugin adds two tasks to interact with a API Consumer contract.
Read the contract data.
npx hardhat read-data --contract <contract address>
Request the data to be updated. It may take some minutes until a Chainlink node updates the data.
npx hardhat request-data --contract <contract address>
This plugin adds the functions readData
and requestData
to the Hardhat Runtime Environment.
Read the contract data.
hre.readData(hre,contractAddress);
Request the data to be updated. It may take some minutes until a Chainlink node updates the data.
hre.requestData(hre,contractAddress);
This plugin does not require configuration.
There are no additional steps you need to take for this plugin to work.
Install it and access the provided functions and the provided tasks through the Hardhat Runtime Environment anywhere you need it.
FAQs
Hardhat TypeScript plugin that interacts with chainlink api consumer contract.
The npm package @appliedblockchain/chainlink-plugins-api-consumer receives a total of 0 weekly downloads. As such, @appliedblockchain/chainlink-plugins-api-consumer popularity was classified as not popular.
We found that @appliedblockchain/chainlink-plugins-api-consumer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.