What do "state" and "state change" mean?

file icon

What do "state" and "state change" mean?


“State” in computing refers to what something is at a certain point in time, typically the present time. 

The state of a ledger of a DLT system encompasses the totality of all transactions that have ever occurred on the ledger since its genesis. This adds up to a final result, such as a set of balances of tokens in accounts, or what condition a group of smart contracts are in.

For a very simplified example, if a DLT system existed only to do a running sum of numbers, and currently its ledger was composed of three transactions: +1, +5, and -2. Those transactions would be the ledger’s full state – indicating that the resulting sum at the current time is -4.

For most DLTs, it’s much more complicated than this, as the ledger isn’t just composed of numbers to add and subtract but represents smart contracts, assets, or any other information. You can think of the ledger’s state as the official record of what is guaranteed to be true - by network consensus.

State change

A “state change” on a blockchain/DLT network is any instance when the state is modified as part of a transaction. Transactions are formed of one or many state changes, and different DLT/blockchain networks may describe these state changes in very different ways. However, in the end, changes to the state of the ledger, as part of a transaction, must be agreed upon by nodes in consensus.

Further reading: