https://github.com/smartcontractkit/hardhat-chainlink-example
Showcase repo for @chainlink/hardhat-chainlink plugin
https://github.com/smartcontractkit/hardhat-chainlink-example
chainlink hardhat
Last synced: about 2 months ago
JSON representation
Showcase repo for @chainlink/hardhat-chainlink plugin
- Host: GitHub
- URL: https://github.com/smartcontractkit/hardhat-chainlink-example
- Owner: smartcontractkit
- Created: 2023-01-16T12:25:45.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-17T13:46:13.000Z (over 2 years ago)
- Last Synced: 2025-02-22T10:33:22.265Z (8 months ago)
- Topics: chainlink, hardhat
- Language: Solidity
- Homepage: https://www.npmjs.com/package/@chainlink/hardhat-chainlink
- Size: 153 KB
- Stars: 3
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hardhat Chainlink Demo Project
This project demonstrates a basic Hardhat Chainlink plugin use case. It comes with a sample contract and a script that deploys that contract.
Copy the `.env.example` file to a file named `.env`, and put your Private Key and [Alchemy key](https://www.alchemy.com/) like this:
```shell
GOERLI_RPC_URL="https://eth-goerli.g.alchemy.com/v2/YOUR_ALCHEMY_KEY_GOES_HERE"
PRIVATE_KEY="YOUR_PRIVATE_KEY_GOES_HERE"
```Try running some of the following tasks:
```shell
npx hardhat run ./scripts/get-price.ts --network goerli
npx hardhat run ./scripts/deploy.ts --network goerli
```To install the plugin in your project type:
```shell
npm install @chainlink/hardhat-chainlink# or
yarn add @chainlink/hardhat-chainlink
```Then import the plugin in your hardhat.config.js:
```js
require("@chainlink/hardhat-chainlink");
```Or, if you are using TypeScript, in your hardhat.config.ts:
```ts
import "@chainlink/hardhat-chainlink";
```