Data types of Solidity Explained Simply

Data types of Solidity Explained Simply


Back to New at Nirolution Solidity Tutorial Blog

Data types of Solidity Explained Simply

Solidity is a new blockchain programming language. It is also often referred to as contract language. It lets you create smart contracts, Dapps, and more. But before you can learn to code with Solidity, we’ll show you the different data types.


Solidity is a new blockchain programming language. It is also often referred to as contract language. It lets you create smart contracts, Dapps, and more. But before you can learn to code with Solidity, we’ll show you the different data types.

Solidity is a statically typed language, which means that the Data types for Solidity of each variable must be specified at compile time. It also means that all classes have to be static. Before we can create our Smart Contract, here is a brief introduction to Solidity’s data types.

  • Hash: 256-bit, 32-byte data chunk, indexable in bytes and operable with bitwise operations.
  • uint: 256-bit unsigned integer that works with bitwise and unsigned arithmetic operations.
  • int: 256-bit signed integer that works with bitwise. That means values can also be negative.
  • string32: Zero terminated ASCII string with a maximum length of 32 bytes (256 bits).
  • Address: Account identifier, similar to a 160-bit hash type.
  • bool: Two-status value, True/False.
  • Structs: physical grouping of variables.

The data types of Solidity differ only slightly from those in Java. However, the small differences are key for the successful learning of Solidity later on. So, with these data types, it is very easy to create a simple Smart Contract.

If you want to be informed about the latest updates, follow us on Facebook, Pinterest and Steemit.

Stay current on your favorite topics

Leave a Reply

Close Menu