Skip to Content
Solidity Programming Essentials
book

Solidity Programming Essentials

by Ritesh Modi
April 2018
Intermediate to advanced
222 pages
5h 28m
English
Packt Publishing
Content preview from Solidity Programming Essentials

The call method

The call method has resulted in a lot of confusion among developers. There is a call method available via the web3.eth object, and there is also the <<address>>.call function. These are two different functions that have different purposes.

The web3.eth call method can only make calls to a node it is connected to and is a read- only operation. It is not allowed to change the state of Ethereum. It does not generate a transaction nor does it consume any gas. It is used to call the pure, constant, and view functions.

On the other hand, call function provided by address data type can call any function available within a contract. There are times when the interface of contract, more commonly known as ABI, is not available, and so ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Solidity Programming Essentials - Second Edition

Solidity Programming Essentials - Second Edition

Ritesh Modi
The Go Programming Language

The Go Programming Language

Alan A. A. Donovan, Brian W. Kernighan
Linux Kernel Programming

Linux Kernel Programming

Kaiwan N. Billimoria
Programming Rust, 2nd Edition

Programming Rust, 2nd Edition

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall

Publisher Resources

ISBN: 9781788831383Supplemental Content