Projects
Solidity Programming

Solidity Programming

Solidity is the primary language used to develop Smart Contracts for Ethereum, as well as for other private blockchains, such as the enterprise-oriented Hyperledger Fabric blockchain.

Solidity is broadly similar to other programming languages but does have some variations and limitations that must be kept in mind when designing a solution using Smart Contracts.

A detailed explanation of all aspects of the Solidity language can be found on the official Solidity language guide online (https://soliditylang.org/ (opens in a new tab)). We will only cover the aspects required for our solution.

The ubiquitous "Hello World" in Solidity:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract MyContract {
    function helloWorld() public pure returns (string memory) {
        return "Hello, World!";
    }
}

When we understand the Remix IDE we will go through the code for one of the sample contracts provided and learn how to compile, deploy, and call functions on the Smart Contract.