An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
April 5, 2022 07:01 pm GMT
Original Link: https://dev.to/cuadroscode/smart-contracts-for-all-9cm
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 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
addressaddress payable
Original Link: https://dev.to/cuadroscode/smart-contracts-for-all-9cm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To