NEW

Introducing Transporter, a new bridging app powered by CCIP. Go cross-chain.

Back

Chainlink Hardhat Starter Kit

Get started with Chainlink services inside your Hardhat projects.

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

Set up your environment

  1. Clone the repository and change directories.

    git clone https://github.com/smartcontractkit/hardhat-starter-kit/ && cd hardhat-starter-kit
    
  2. If you plan to use TypeScript, check out the TypeScript branch.

    git checkout typescript
    
  3. Install the dependencies using either npm or yarn:

    npm install
    
    yarn --install
    
  4. 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.

Stay updated on the latest Chainlink news