What is Contract State
The state records any changes, permissions, or other instructions given to the contract. Much like the DNA of the cell, the state reflects what happened to the contract throughout its "life".
The state is a necessary component of any smart contract that exists in the blockchain database. That said, only the parties entering into an agreement can request changes to the contract state.
As with all blockchain transactions*, the nodes (individual computers) processing them will prevent unauthorized access by third parties. Also, only specific contract actions defined in the code will have an effect on the contract state. Even in case of dispute escalation, the Zenland agent** is assigned to the case by either party after being invited. Before that specific action is taken no agent can access the contract.
- disputed, or
- executed state.
Once the contract is executed, no further action is taken and the contract remains in this state as long as the blockchain exists. Thus, the executed state is the permanent state of a smart contract.
For information on what a particular state means refer to the relevant chapter in the current section.