Question : what is view keyword in solidity
Answered by : john-pinto
In Solidity, a function that only reads but doesn't alter the state variables defined in the contract is called a View Function . If the statements below are found in a view function, the compiler will consider them as altering state variables and return a warning.
Source : | Last Update : Sun, 22 May 22