Ire Aderinokun 9/3/2019

Calling smart contract functions using web3.js - call() vs send()

Read Original

This technical article clarifies the crucial distinction between the call() and send() methods in web3.js for Ethereum smart contract interaction. It explains that call() is for reading data (view/pure functions) without altering state, while send() is for executing transactions that modify contract state, requiring gas. The post includes a code example and discusses function types like view and payable.

Calling smart contract functions using web3.js - call() vs send()

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week