Smart contracts for ALL #1

Getting Started Guide

A smart contract is a piece of code running in a blockchain in this case we use Solidity.

1 Where to use solidity ?

the easy way is use Remix (Remix is a code editor online)

2 How defined a smart…


This content originally appeared on DEV Community and was authored by kevin david cuadros

Getting Started Guide

A smart contract is a piece of code running in a blockchain in this case we use Solidity.

1 Where to use solidity ?

  • the easy way is use Remix (Remix is a code editor online)

2 How defined a smart contract ?

  • 2.1 as a comment we write the license

// SPDX-License-Identifier: GPL-3.0

  • 2.2 versions available for run the contract

pragma solidity >=0.7.0 <0.9.0;

3 My first contract

  • 3.1 just as we define a class in other languages in solidity we write the word 'contract'
contract Asset { } 

4 Types in solidity

  • Booleans
bool
  • Integers
int / uint
  • Address
address
address payable


This content originally appeared on DEV Community and was authored by kevin david cuadros


Print Share Comment Cite Upload Translate Updates
APA

kevin david cuadros | Sciencx (2022-04-05T19:01:39+00:00) Smart contracts for ALL #1. Retrieved from https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/

MLA
" » Smart contracts for ALL #1." kevin david cuadros | Sciencx - Tuesday April 5, 2022, https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/
HARVARD
kevin david cuadros | Sciencx Tuesday April 5, 2022 » Smart contracts for ALL #1., viewed ,<https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/>
VANCOUVER
kevin david cuadros | Sciencx - » Smart contracts for ALL #1. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/
CHICAGO
" » Smart contracts for ALL #1." kevin david cuadros | Sciencx - Accessed . https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/
IEEE
" » Smart contracts for ALL #1." kevin david cuadros | Sciencx [Online]. Available: https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/. [Accessed: ]
rf:citation
» Smart contracts for ALL #1 | kevin david cuadros | Sciencx | https://www.scien.cx/2022/04/05/smart-contracts-for-all-1/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.