Overview
Several Starter Kits are available for different smart contract development frameworks. These starter kits make it easy to get started with Chainlink services inside your Hardhat projects. This guide shows you how to install and configure the Chainlink Hardhat Starter Kit.
Objective
You will install and configure the Chainlink Hardhat starter kit so you can use it to integrate Chainlink services into your own smart contracts.
Before you begin
- If you are new to smart contract development, learn how to Deploy Your First Smart Contract.
- If you are new to Hardhat, read the Hardhat Getting Started documentation.
- Set up a cryptocurrency wallet such as MetaMask.
- Install git
- Install Nodejs, and optionally install Yarn.
Set up your environment
-
Clone the repository and change directories.
git clone https://github.com/smartcontractkit/hardhat-starter-kit/ && cd hardhat-starter-kit -
If you plan to use TypeScript, check out the TypeScript branch.
git checkout typescript -
Install the dependencies using either
npmoryarn:npm installyarn --install -
Confirm that everything is configured correctly by running a test.
npx hardhat test
Using the Starter Kit
After you install the starter kit, you can complete several different tasks. See the Chainlink Hardhat Starter Kit Usage guide for a list of examples of how the starter kit can be used to develop smart contracts integrated with Chainlink services.