Member-only story

Solidity Tutorial: all about Functions

Jean Cvllr
11 min readMay 17, 2020

--

Table of Contents

Function visibility

View vs Pure

Named Arguments in Functions

Payable functions

Fallback functions

Receive functions

Functions overloading

Functions signature

External functions

Recursive Functions : preventing re-entrancy

Function Visibility

Introduction

Solidity is a high level language for the EVM. The EVM under the hood does what we call EVM calls, known as message calls”. From a higher perspective, Solidity knows two kind of function calls:

  • internal ones: do not create an EVM call
  • external ones: create an EVM call

4 visibilities availables

There are 4 main visibilities that can be assigned to functions in Solidity.

--

--

Jean Cvllr
Jean Cvllr

Written by Jean Cvllr

Smart Contract engineer at @LUKSO. Full Stack Developer. https://github.com/CJ42

Responses (1)