# @nomicfoundation/hardhat-typechain

> Hardhat plugin to support typechain

Latest version **3.1.3** (published 2026-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @nomicfoundation/hardhat-typechain
pnpm add @nomicfoundation/hardhat-typechain
yarn add @nomicfoundation/hardhat-typechain
bun add @nomicfoundation/hardhat-typechain
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.3 |
| Published | 2026-10-22 |
| First published | 2025-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 6 |
| Unpacked size | 48.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8519 |
| Author | Nomic Foundation |
| Keywords | typechain, ethereum, smart-contracts, hardhat |

## Links

- npm: https://www.npmjs.com/package/@nomicfoundation/hardhat-typechain
- Repository: https://github.com/NomicFoundation/hardhat
- Homepage: https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-typechain
- Issues: https://github.com/NomicFoundation/hardhat/issues
- npm.io page: https://npm.io/package/@nomicfoundation/hardhat-typechain

## Dependencies (6)

- [zod](https://npm.io/package/zod.md) ^3.23.8
- [typechain](https://npm.io/package/typechain.md) ^8.3.1
- [@typechain/ethers-v6](https://npm.io/package/@typechain/ethers-v6.md) ^0.5.0
- [@nomicfoundation/hardhat-utils](https://npm.io/package/@nomicfoundation/hardhat-utils.md) ^5.1.0
- [@nomicfoundation/hardhat-errors](https://npm.io/package/@nomicfoundation/hardhat-errors.md) ^3.0.15
- [@nomicfoundation/hardhat-zod-utils](https://npm.io/package/@nomicfoundation/hardhat-zod-utils.md) ^3.0.4

## Recent versions

- 3.1.3 (latest) — 2026-10-22
- 3.1.2 — 2026-10-15
- 3.1.1 — 2026-06-04
- 3.1.0 — 2026-05-26
- 3.0.9 — 2026-05-07
- 3.0.8 — 2026-04-30
- 3.0.7 — 2026-04-22
- 3.0.6 — 2026-04-16
- 3.0.5 — 2026-03-31
- 3.0.4 — 2026-03-05
- 3.0.3 — 2026-02-25
- 3.0.2 — 2026-02-02
- 3.0.1 — 2025-11-04
- 3.0.0 — 2025-08-13
- 3.0.0-next.32 — 2025-08-13
- … 32 more at https://npm.io/package/@nomicfoundation/hardhat-typechain/versions

## README

# hardhat-typechain

This plugin integrates [TypeChain](https://github.com/dethcrypto/TypeChain) into Hardhat, automatically generating TypeScript bindings for your smart contracts.

## Installation

> This plugin is part of the [Ethers+Mocha Hardhat Toolbox](https://hardhat.org/plugins/nomicfoundation-hardhat-toolbox-mocha-ethers). If you are using that toolbox, there's nothing else you need to do.

To install this plugin, run the following command:

```bash
npm install --save-dev @nomicfoundation/hardhat-typechain
```

In your `hardhat.config.ts` file, import the plugin and add it to the `plugins` array:

```ts
import { defineConfig } from "hardhat/config";
import hardhatTypechain from "@nomicfoundation/hardhat-typechain";

export default defineConfig({
  plugins: [hardhatTypechain],
});
```

## Usage

No extra steps are required to use this plugin. It will be run automatically by Hardhat when building your contracts.

---
_Source: https://npm.io/package/@nomicfoundation/hardhat-typechain · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
