Set up smart contract development tools#

At a glance

This guide explains how to install the tools needed to develop, build, and deploy smart contracts on Concordium. No prior Concordium experience is needed, but you should be familiar with Rust. After following this guide, you will have Rust, cargo-concordium, and the wasm32 target installed and ready for smart contract development.

This guide covers how to install the tools needed to develop, build, and deploy smart contracts on Concordium.

Once you are familiar with smart contracts, it is a good idea to read the Smart contracts best practices.

Rust and Cargo#

First, install rustup, which installs both Rust and Cargo on your machine.

Then use rustup to install the Wasm target, which is used for compilation:

$ rustup target add wasm32v1-none

cargo-concordium#

cargo-concordium is the tool for developing smart contracts for the Concordium blockchain. It can be used for compiling and testing smart contracts, and enables features such as building contract schemas.

To install cargo-concordium run:

$ cargo install --locked cargo-concordium

For a description of how to use the cargo-concordium run:

$ cargo concordium --help

To use verifiable builds with cargo-concordium a container runtime such as Docker is required.

Typescript smart contract client generator#

The Typescript smart contract client generator helps you generate JavaScript/TypeScript clients for smart contracts on the Concordium blockchain, providing a lower development time and better type-safety.

Concordium client#

The tool to deploy and interact with smart contracts is concordium-client. It is distributed as part of the Concordium software package.

To ease deployment and initialization, you can use the Smart contract deploy and initialize tool. It works with the Concordium Wallet for Web to deploy and initialize smart contracts to Mainnet and Testnet.

Was this article helpful?