Deploy your first contract
Use this tutorial to deploy a simple Solidity contract to TeQoin with Hardhat. It is the fastest path from an empty folder to a working onchain contract.Before you start
You need:- Node.js 20 or later
- A wallet with test ETH
- Access to the TeQoin RPC endpoint:
https://rpc.teqoin.io - Chain ID
420377
Step 1: Create a Hardhat project
Step 2: Add your wallet key
Create a.env file:
.env to .gitignore before you continue.
Step 3: Configure the TeQoin network
Updatehardhat.config.js:
Step 4: Write a simple contract
Createcontracts/Counter.sol:
Step 5: Compile
Step 6: Create the deploy script
Createscripts/deploy.js:
Step 7: Deploy to TeQoin
Step 8: Confirm the deployment
Usecast or a quick script to call the contract:
0 back from the first read.
Next steps
- Verify the contract with the process in /developers/verify-contract
- Build a frontend in /tutorials/build-dapp
- Connect a wallet in /tutorials/integrate-wallet