> For the complete documentation index, see [llms.txt](https://docs.bahamut.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bahamut.io/building-on-bahamut/deploy-smart-contracts/using-hardhat/create-a-project.md).

# Create a project

In your project folder, run npx hardhat to create a sample project. \
\
Choose to create typescript or javascript projects. Then you should create an .env file in the root to store your private key (wallet from which you need to deploy contracts). After that you need to add the Bahamut API key to the .env file for verifying the contract.

**Configure Hardhat**

Go to hardhat.config.js file. Add created API key and account PrivateKey to config file like this\`

`module.exports = {`

&#x20; `defaultNetwork: "bahamut",`

&#x20; `networks: {`

&#x20;   `sahara: {`

&#x20;     `url: "https://rpc1.bahamut.io",`

&#x20;     `accounts: [process.env.PRIVATE_KEY],`

&#x20;   `}`

&#x20; `},`

`};`<br>

<br>

\ <br>
