Skip to main content

Hardhat Typescript Starter

thirdweb contracts starter project for Hardhat & TypeScript

To create a new project using this template, use the thirdweb CLI:

npx thirdweb create --template hardhat-typescript-starter

Using this template

Create a project using this example:

npx thirdweb create --contract --template hardhat-typescript-starter

You can start editing the page by modifying contracts/MyContract.sol.

To add functionality to your contracts, you can use the @thirdweb-dev/contracts package which provides base contracts and extensions to inherit. The package is already installed with this project. Head to our Contracts SDK Docs to learn more.

Deploying Contracts

When you're ready to deploy your contracts, just run one of the following command to deploy you're contracts:

npm run deploy
# or
yarn deploy

Releasing Contracts

If you want to release a version of your contracts publicly, you can use one of the followings command:

npm run release
# or
yarn release

Join our Discord!

For any questions, suggestions, join our discord at