evm-hardhat

Automate Hardhat project setup and deployment for Avalanche smart contracts.

Updated May 7, 2026
One-click install
npx skills add https://github.com/Ayomisco/avaxskills --skill evm-hardhat-ayomisco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evm-hardhat
Source: https://github.com/Ayomisco/avaxskills/tree/main/website/public/evm-hardhat
Command: npx skills add https://github.com/Ayomisco/avaxskills --skill evm-hardhat-ayomisco

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotenv, typescript, @nomicfoundation/hardhat-toolbox, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of setting up and configuring Hardhat for Avalanche blockchain projects, enabling developers to quickly initialize, develop, and deploy smart contracts on Avalanche networks.

Core Features & Use Cases

  • Project Initialization: Automates the creation of a new Hardhat project configured for Avalanche C-Chain and Subnets.
  • Network Configuration: Provides templates for editing hardhat.config.ts with Avalanche RPC URLs, chain IDs, and account setup.
  • Deployment & Verification: Includes scripts for deploying contracts and verifying them on Snowtrace, with guidance on best practices.
  • Testing & Debugging: Supports running tests, local network development, and interacting with contracts via Hardhat console.
  • Use Case: A developer can initialize a new Avalanche-compatible project, write deployment scripts, and verify contracts with minimal manual setup.

Quick Start

Write a TypeScript deployment script, then run it with the desired network flag to deploy your contracts on Avalanche.

Frequently Asked Questions about evm-hardhat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Hardhat for Avalanche smart contract deployment?

To configure Hardhat for Avalanche deployment, you edit the 'hardhat.config.ts' file using provided templates to set Avalanche RPC URLs, chain IDs, and account configurations, automating the network setup process for the C-Chain and Subnets.

What is the best way to initialize a Hardhat project for Avalanche Subnets?

The best way to initialize an Avalanche-compatible Hardhat project is by using automated project initialization templates that pre-configure network settings and deployment environments, accelerating blockchain development workflows with minimal manual setup.

Does Hardhat support contract verification on Snowtrace for Avalanche networks?

Yes, Hardhat supports contract verification on Snowtrace for Avalanche networks. The setup includes specific scripts and guidance on best practices to automate the verification process after deploying your smart contracts.

Can I use TypeScript to write deployment scripts for Avalanche smart contracts?

Yes, you can use TypeScript to write deployment scripts for Avalanche smart contracts. The project environment supports TypeScript, allowing you to write scripts and run them with the desired network flag to deploy contracts efficiently.

How do I test and debug Ethereum-based smart contracts on Avalanche locally?

You can test and debug Ethereum-based smart contracts on Avalanche locally by utilizing the built-in Hardhat testing support and interacting with your contracts via the Hardhat console on a local network development environment.

Do I need dotenv to manage environment variables for Hardhat network configuration?

Yes, you need dotenv to manage environment variables for Hardhat network configuration. It securely handles RPC URLs and private account setups, ensuring your Avalanche deployment credentials are safely configured.