Solidity

programming language used to write smart contracts.

Types

Access modifiers

Structure of a smart contract

Include the license information and solidity version at the top of the file. Example:

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.4;

declare contracts like this:

contract MyContract {

}

Contracts can contain

Developing on The Blockchain

Resources