MCPcopy Index your code
hub / github.com/NomicFoundation/hardhat

github.com/NomicFoundation/hardhat @3.9.1 sqlite

repository ↗ · DeepWiki ↗ · release 3.9.1 ↗
5,222 symbols 18,054 edges 1,686 files 481 documented · 9%
README

Hardhat is an Ethereum development environment for professionals. It facilitates performing frequent tasks, such as running tests, automatically checking code for mistakes or interacting with smart contracts.

Built by the Nomic Foundation for the Ethereum community.


💡 This is the README for Hardhat 3, the new major version of Hardhat. For the previous version (v2), see this branch instead.


Getting started

To install Hardhat and initialize a new project, run the following command in an empty directory:

npx hardhat --init

This will take you through an interactive setup process to get started.

Learn more

To learn more about Hardhat, check out the documentation.

Contributing

Contributions are always welcome! Feel free to open any issue or send a pull request.

Go to CONTRIBUTING.md to learn about how to set up Hardhat's development environment.

Extension points exported contracts — how you extend this code

NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat-viem/src/type-extensions.ts
NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat-ignition-viem/src/type-extensions.ts
NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat/src/types/network.ts
EIP1193Provider (Interface)
(no doc) [11 implementers]
packages/ignition-core/src/types/provider.ts
NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat-ignition-ethers/src/type-extensions.ts
NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat-verify/src/type-extensions.ts
NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat-network-helpers/src/type-extensions.ts
NetworkConnection (Interface)
(no doc) [11 implementers]
packages/hardhat-ethers/src/type-extensions.ts

Core symbols most depended-on inside this repo

buildModule
called by 677
packages/ignition-core/src/build-module.ts
contract
called by 631
packages/ignition-core/src/types/module-builder.ts
get
called by 402
packages/hardhat/src/types/config.ts
assertRejectsWithHardhatError
called by 386
packages/hardhat-test-utils/src/hardhat-error.ts
request
called by 341
packages/ignition-core/src/types/provider.ts
getTask
called by 332
packages/hardhat/src/types/tasks.ts
create
called by 326
packages/hardhat/src/types/network.ts
run
called by 311
packages/hardhat/src/types/tasks.ts

Shape

Function 2,315
Method 1,632
Interface 770
Class 468
Enum 37

Languages

TypeScript100%

Modules by API surface

packages/hardhat-ethers/src/internal/hardhat-ethers-provider/hardhat-ethers-provider.ts74 symbols
packages/ignition-core/test/execution/future-processor/helpers/network-interaction-execution.ts53 symbols
packages/hardhat-ignition/src/helpers/pretty-event-handler.ts46 symbols
packages/ignition-core/src/internal/module.ts44 symbols
packages/hardhat-utils/src/fs.ts43 symbols
packages/ignition-core/src/internal/module-builder.ts40 symbols
packages/hardhat-verify/src/internal/etherscan.ts40 symbols
packages/ignition-core/src/types/execution-events.ts37 symbols
packages/hardhat/src/internal/builtin-plugins/solidity/build-system/build-system.ts37 symbols
packages/hardhat-network-helpers/src/types.ts35 symbols
packages/hardhat-keystore/src/internal/keystores/encryption.ts35 symbols
packages/ignition-core/src/internal/execution/jsonrpc-client.ts34 symbols

Dependencies from manifests, versioned

@actions/core1.10.1 · 1×
@changesets/changelog-github0.6.0 · 1×
@changesets/cli2.16.0 · 1×
@eslint-community/eslint-plugin-eslint-comments4.5.0 · 1×
@ethersproject/abi5.8.0 · 1×
@ethersproject/address5.6.1 · 1×
@fontsource/roboto5.0.8 · 1×
@istanbuljs/nyc-config-typescript1.0.2 · 1×
@ledgerhq/errors6.25.0 · 1×
@ledgerhq/evm-tools1.7.7 · 1×
@ledgerhq/hw-app-eth6.45.19 · 1×
@ledgerhq/hw-transport6.31.11 · 1×

For agents

$ claude mcp add hardhat \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact