How To Develop a DApp on VeChain (I):Intro

What is DApp?

Web app: client, server and database.

What’s Web Application?

  • Client: web browsers.
  • Server: operates the database, serves the clients data.
  • Database: stores the data as valuable assets. 😛
  • The server interfaces with the database, not clients.
  • The database is hidden and holds valuable assets.
  • The user has no direct control of the data, only the server can. 😛
DApp: Web + Blockchain

What is DApp?

  • Client: Browser/IoT devices.
  • Server: Serves code fragments or static assets like images.
  • Blockchain: Partial replacement of database, stores/processes critical user data.

A public blockchain is a openly readable, slow, expensive database running by a network consists of hundreds of nodes.

  • DApp interfaces with both blockchain and traditional server.
  • The blockchain cannot be easily shut down as it contains multiple nodes.
  • The user can directly control data on the blockchain via DApp.

Write a DApp: Sync and Connex

Sync: Browser of VeChain apps.

DApp shall both know how to communicate with traditional server backend as well as read/write from a blockchain network. Connex.js helps with the blockchain part, makes the developer life easier.

  • Sync: Web browser of VeChain apps.
  • Connex.js: Standard Javascript library that helps to communicate with VeChain, included in Sync.

Token Transfer: A Simple DApp in Javascript

  1. How to read data from a VeChain blockchain smart contract.
  2. How to display data to the user.
  3. How to update data on blockchain via Javascript calls.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store