Reading data from a smart contract does not modify the state, while writing data into the contract modifies it. State changing methods can be called only by a transaction and with enough gas for execution. The state will be changed if the transaction satisfies all the conditions placed in the contract method.
In this recipe, you will learn how to interact with the contract using state changing methods.