An example operation may include one or more of calculating a timestamp for each transaction within a blockchain. The calculating of the time stamp includes setting an incremental number to each key and value modified in the transaction, and incrementing the incremental number when the transaction within the blockchain is processed. The example operation may also include determining a relative order of change made to a smart-contract state.