Getting started with Solidity.

Solidity is designed to compile to code for the Ethereum Virtual Machine.

Solidity is a high-level language whose syntax is similar to that of JavaScript and it is designed to compile to code for the Ethereum Virtual Machine. As you will see, it is possible to create contracts for voting, crowdfunding, blind auctions, multi-signature wallets and more.

Solidity is the programming language that we use to create Etherem based Smart Contracts.

Data Types

Booleans

bool: The possible values are constants true and false.

Operators:

! (logical negation)

&& (logical conjunction, “and”)

(logical disjunction, “or”)

== (equality)

!= (inequality)

Integers

int / uint: Signed and unsigned integers of various sizes. Keywords uint8 to uint256 in steps of 8 (unsigned of 8 up to 256 bits) and int8 to int256. uint and int are aliases for uint256 and int256, respectively.

Address

address: Holds a 20 byte value (size of an Ethereum address). Address types also have members and serve as base for all contracts.

Next we will look into Expressions and Control Structures

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.