Hardhat publishes its own Agent Skill for AI coding assistants. Install it with
npx skills add nomicfoundation/hardhat-skills for AI-guided help with Hardhat 3 workflows and migrations. Pair it with the whitechain-dev skill for the Whitechain-specific steps below.Before you deploy
- Node.js 22 or later and npm. Hardhat 3 requires Node.js 22 or newer.
- A funded testnet account. Claim test WBT from the faucet.
- The private key for that account. Use a throwaway key for testing.
1. Create a project
2. Set environment variables
.env file:
0x prefix. Hardhat rejects the network configuration without it.
Add .env to .gitignore so you do not commit the key.
3. Configure the network
Replace the contents ofhardhat.config.ts with:
4. Add a contract
Createcontracts/Storage.sol.
5. Add a deploy script
Createscripts/deploy.ts.
network.create("whitechainSepolia") opens a connection to the network defined in hardhat.config.ts. Passing the name makes the script explicit; network.create() with no argument uses whatever --network selects. Do not use network.connect(), which is deprecated in Hardhat 3 and will be removed. Hardhat 3 uses ESM with top-level await, so no main() wrapper is needed.
6. Deploy the contract
7. Verify the contract
Storage takes no constructor arguments, so pass only the address.

