Sitemap

Blockchain #1: Basic of Ethereum on Blockchain Technology

8 min readMay 10, 2020

--

Press enter or click to view image in full size
*This is an image from ethereum.org/assets

Ethereum one of excited Blockchain Framework

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

In this section we will describe Common function types:
Can only use one per function :
-
public: anyone with an account can call this function
- private: only this contract can call this function
They mean the same thing:
-
view: this function returns data and does not modify the contract’s data
- constant: this functions returns data and does not modify the contracts’ data
Other
Pure: function will not modify or even read the contract’s data
payable: when someone calls this function they might send ether along, some outside entity attempts to call a function on a contract payable means that we might attempt to call it and send money to the contract at the same time.
Return it will return the initial conditions.

Gas needed for all of the operations needs 14 gas

--

--

Arista Indrajaya
Arista Indrajaya

Written by Arista Indrajaya

Blockchain Enthusiast and Software Developer