Intro to VeChain
I. Getting started
Set up the essentials to begin building on VeChain
Buy Me a Coffee App
Over the next few lessons, you’ll be guided step-by-step, from understanding the basics to deploying your first application (app) on VeChain.
The Buy Me a Coffee App allows supporters to send small donations in VET to a content creator (the contract owner) along with a message. Each “coffee” purchase is logged onchain, and the VET tips are stored in the smart contract until the owner withdraws them.
What You Will Learn
Basic structure of a Solidity smart contract, and use Hardhat to compile and deploy it on VeChainThor.
You’ll also use VeChain-specific tools, such as the official wallet (VeWorld) and public endpoints, when deploying.
Node.js and npm: Make sure you have Node.js and npm installed. Hardhat runs as an npm package.
Before you continue, make sure you set up the VeWorld wallet to connect to VeChain Apps. VeWorld allows websites to connect to VeChain and sign transactions.
Getting Started
At this point, you should have:
Node.js & npm installed
Created a VeWorld wallet
Claimed testnet tokens
(Optional) Check out The Buy Me A Coffee Example Repository
To get started, use the command below in your terminal to create an app using one of the pre-existing templates:
Follow the prompt on the terminal and select the Buy Me Coffee Example template:
Name your app (for example: buymeacoffee), navigate to the correct directory, and install all the dependencies required:
And you're ready! The repository already includes the Hardhat setup and the smart contract file.
In the next lesson, you'll go through the basics of Solidity smart contracts, deploy your first VeChain smart contract, and interact with your first app.
Join our Telegram