Smart Contracts

Demonstrates using the ink! programming language to create and deploy smart contracts on a Substrate-based network.

The Develop smart contracts tutorials guide you through how you can use the ink! programming languagearrow-up-right to build smart contracts that run on a Substrate-based blockchain.

The tutorials in this section use a preconfigured substrate-contracts-nodearrow-up-right to keep your work focused on the basics of writing smart contracts.

If you use the standard node templatearrow-up-right, you must manually add the Contracts palletarrow-up-right and make other changes to your development environment. You can compare the runtime code for the two nodes to see additional information about the differences between them.

  • Prepare your first contract describes how to update your development environment and create a smart contract project using the ink! programming language.

  • Develop a smart contract demonstrates how to store, increment, and retrieve simple values using a smart contract.

  • Use maps for storing values extends the previous tutorial by illustrating how to use maps to store and retrieve values in a smart contract.

  • Build a token contract illustrates how you can build a simple smart contract for transferring ERC-20 tokens.

  • Troubleshoot smart contracts describes a few common issues that you might encounter when writing and deploying smart contracts.

Last updated