Solidity Crash Course

5/5 - (2 votes)

Step 1: Get Started

Introduction to Smart Contracts and Solidity

In this first article in the series, we’ll start with the basics of what Solidity is, what smart contracts are, how they work, how they are implemented, and then dig right into some cool Solidity examples and details.

Of course, the first question poses itself: What is Solidity?

As you could have imagined, Solidity has something to do with smart contracts.

Solidity is the very programming language we’ll be using for implementing smart contracts!

How exciting, isn’t it?

🌍 Learn More: Read the full tutorial on the Finxter blog before moving on.

Step 2: Create Your Own Token

How to Create Your Own Token in Solidity - Easy Example

After diving into some of the basic elements of Solidity concerning smart contracts, we’ll be going even further with the examples and explanations, helping us understand why, when, and how are specific elements of Solidity used in a certain way.

In this example, we’ll take a look at a bit more complex example of a smart contract (see docs), which showcases a very basic form of cryptocurrency.

The contract provides its creator with the functionality of creating new crypto coins (some may call them “shitcoins” ;)).

This example of a smart contract is implemented in a way that enables any party to send coins (message sender) to any other party (message receiver) without being registered with a username and password. The only factor that identifies a user is an Ethereum keypair. 

Let’s dive into the contract!

🌍 Learn More: Read the full tutorial on the Finxter blog before moving on.

Step 3: Blockchain Basics in Solidity

Blockchain technology enables us to write programs without having to think about the details of the underlying communication infrastructure.

One of the main roles of a blockchain is to preserve the data and make it temper-resistant. In that sense, we can easily consider a blockchain as a globally shared, transactional database.

  • A blockchain network is globally shared because any party in the network can access and read its contents.
  • It is transactional because any change to the blockchain has to be accepted by almost all, or at least the majority of other members, depending on the blockchain implementation.

This way, the blockchain behaves in a consistent, transactional manner and warrants that the transaction will be done entirely or not at all.

🌍 Learn More: Read the full tutorial on the Finxter blog before moving on.