LogoLogo
  • Overview
    • Introduction
    • Features
    • Consensus PoSa
  • Building on Bahamut
    • Overview
    • Network Endpoints
    • Deploy Smart Contracts
      • Using Hardhat
        • Create a project
        • Compiling the contract
      • Using Remix
        • Writing a Smart Contract
        • Compiling the contract
    • Deploy a Token
    • Deploy an NFT
    • Explorer
    • Bridge
    • About $FTN
  • Become a validator
    • Step 1: Install the Required Files
    • Step 2: Run the Node
    • Step 3: Set Up Your Wallet
    • Step 4: Generate Validator Keys
    • Step 5: Import Validator Keys and Launch the Validator Client
    • Step 6: Submit Deposit Data
    • Step 7: Set Withdrawal Credentials (BLS to Execution)
  • Validator Checklist
  • Staking Withdrawals
  • Difference on Bahamut Staking vs. Lolik
  • Disclosure
    • Disclaimers
    • Risk Statement
Powered by GitBook
On this page
  1. Building on Bahamut
  2. Deploy Smart Contracts

Using Hardhat

PreviousDeploy Smart ContractsNextCreate a project

Last updated 8 months ago

What you will do

  • Set up Hardhat

  • Create a simple smart contract

  • Compile contract

  • Test contract

  • Deploy contract

Pre-requisites

There are a few technical requirements before we start, as listed below:

  • (comes with Node)

Once we have those installed, you need to create an npm project by going to an empty folder, running npm init --yes, and following its instructions to install Hardhat. Once your project is ready, you should run the following:

npm install --save-dev hardhat

To create your Hardhat project, run npx hardhat in your project folder. Let’s create the sample project and follow these steps to try out a sample task and compile, test, and deploy the sample contract.

​
​
Node.js v10+ LTS and npm
Git