Intro to VeChain

Compile & Deploy Contracts

Learn how to compile and deploy your contract

Compile & Deploy

Use Hardhat to compile your contract and deploy it to VeChain testnet.

npx hardhat compile
npx hardhat run ./ignition/modules/myScript.ts --network vechain_testnet

Expect a response that looks like this: 

Deploying contract with account: 0x78B19840aCAcFac7e1f235e07FD430A6763f28eE
Network: vechain_testnet
Contract deployed at: 0x42e7b30840997756d06224e6083a944f63a3dbbe

Try It Yourself

This smart contract is part of the "Your First dApp" module on the VeChain Builders Academy. You’ll learn how to connect a front end, simulate user input, and track events emitted by this contract.

Start building today and discover how simple and effective it is to develop apps with Solidity on VeChain.