Skip to main content

Create messaging dApp

In this tutorial, we are going to build a simple messaging dApp created by Aishat Akinyemi. This tutorial uses Cudos Blast.

The messaging dApp will do the following:

  1. Display a message "hello world"
  2. Allow a user to interact with a reply of their choice.
  3. The account will only a single reply.
  4. Trying to reply more than once will return an error.

Here's what it looks like:


00 What you need to get started

  • Go (Install Go and set Go Path)
  • Basic understanding of Rust
  • Node.js min 14.15.0 max 16.10.0
  • Docker

01 Install Cudos Blast

  1. Run the following command to install Cudos Blast.
npm install cudos-blast -g
  1. Check it installed okay.
blast version

Usage: blast <command> [arguments] [command options]

blast init Create a sample project
blast compile Compile the smart contracts in the workspace in
alphabetical order
blast test Run the JavaScript tests
blast rusttest Run smart contracts' rust tests
blast node Manage a local CUDOS node
blast run <scriptFilePath> Run a single script
blast keys Manage node's accounts (keys)
  1. Create a new directory for your project and initial a blast project.
mkdir new-project
cd new-project
blast init
Success! Sample project initialized in ~/projects/new-project
  1. Open in your favourite code editor e.g. Visual Studio Code


  1. Open Contracts and Delete Beta.

  2. Rename Alpha to your project name e.g. newproject