Skip to content
VSC Documentation
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Introduction
Using VSC
Roles
Overview
Liquidity Providers (LPs)
Senders and Receivers
Validators
Developers
dApp Users
Traders
Arbitrageurs
Native Asset Mapping
Feeless In-Protocol Transactions
Stablecoin (HBD) as Base Asset
Technology
Overview
Cross-Chain Arhitecture
Execution Environment
Validator Operations
How To
Overview
How to Deploy a VSC Validator Node
Generate Wallet
How to Write, Test, and Deploy a Smart Contract on VSC (OUTLINE)
How to use the VSC API (OUTLINE)
References
References
Account Types
Api
VSC client
SDK
Smart Contract Template
Block Explorers
FAQ
GitHub
Select theme
Dark
Light
Auto
How to Write, Test, and Deploy a Smart Contract on VSC (OUTLINE)
1. Setting Up Your Environment
Section titled “1. Setting Up Your Environment”
1.1 Prerequisites
Section titled “1.1 Prerequisites”
Node.js
Git
1.2 Install Dependencies
Section titled “1.2 Install Dependencies”
1.3 Setup
.env
Section titled “1.3 Setup .env”
2. Writing Your First Contract
Section titled “2. Writing Your First Contract”
2.1 Project Structure
Section titled “2.1 Project Structure”
2.2 Example: Counter or Token Contract
Section titled “2.2 Example: Counter or Token Contract”
3. Compiling the Contract
Section titled “3. Compiling the Contract”
3.1 Compile Command
Section titled “3.1 Compile Command”
3.2 Output in
build/
Folder
Section titled “3.2 Output in build/ Folder”
4. Testing the Contract
Section titled “4. Testing the Contract”
4.1 Run Tests
Section titled “4.1 Run Tests”
4.2 Sample Test File
Section titled “4.2 Sample Test File”
5. Deploying
Section titled “5. Deploying”
5.1 Deploy Script
Section titled “5.1 Deploy Script”
5.2 On-Chain Result
Section titled “5.2 On-Chain Result”
6. Calling Your Contract
Section titled “6. Calling Your Contract”
6.1 JSON Structure
Section titled “6.1 JSON Structure”
6.2 Hive Tools (e.g. PeakD Broadcast)
Section titled “6.2 Hive Tools (e.g. PeakD Broadcast)”