Skip to content

Lab: Solidity Basics - The Blockchain Messenger

In the previous section you setup remix and already compiled and interacted with a smart contract. But you don't have much solidity knowledge yet.

In this section we're build a Smart Contract called "The Blockchain Messenger". πŸ’ͺ🏻

The goal is very simple: This one will save a message on the Blockchain, readable to everyone, write able only to the person who deployed to contract.

We also count how many times the message was updated.

At the end of the section you should have a better understanding of the most important value types in solidity, a special kind of variable type called address, the important global msg-object and a few of its properties. You will also know the basic structures like read/write functions and constructors.

In this section we're going to continue using Remix, as well as the JavaScript VM for that. I'll introduce the theory you need to complete the project first and then we're putting it all together. Or you challenge yourself and, after going through the theory, try to complete the project yourself first and then simply compare it to my sample solution. No matter what you do, I hope you're here to learn some solidity stuff, so let's dive into it!

What You Know At The End Of The Lab

🧠 Familiarize yourself with Types of Variables

πŸ“ Get Insights into Solidity quirks and specials

πŸ’‘ Be able to bring your own ideas to life!

Get Started

πŸ’ͺ πŸ’ͺ πŸ’ͺ Let's get started

Last update: September 4, 2022