Skip to main content

A Counter on an NCTL Network

This tutorial installs a simple counter contract on a local Casper Network with NCTL. The contract is straightforward and simply maintains a counter variable. If you want to learn to send deploys to the Testnet, you can follow a similar tutorial. Once you are familiar with this process, the next step will be to write more practical smart contracts.

Before we go through the tutorial, we will give a high-level overview of this tutorial's walkthrough and briefly summarize the relevant commands (and respective arguments).


  1. You have completed the Getting Started tutorial to set up your development environment, including tools like cmake (version 3.1.4+), cargo, and Rust.
  2. You have completed the NCTL tutorial, which introduces you to the CLI tool to set up and control local Casper networks for development.
  3. Follow the installation instructions for the Casper client. We will use the casper-client to send deploys to the chain.