I want to make a snapshot of Iroha state using a series of queries. The snapshot should be consistent, i.e. all queries should be done in an isolated way, without changes to the state while the queries are performed.
Desirable solution
Add a way to execute a series of queries on an isolated state via Client Query API.
Current solution
I guess it is currently possible to do via smartcontracts: I can create a manually-executed trigger that will perform all needed queries on a single state and emit any kind of aggregated output as an event with custom JSON payload.
Use case
I want to make a snapshot of Iroha state using a series of queries. The snapshot should be consistent, i.e. all queries should be done in an isolated way, without changes to the state while the queries are performed.
Desirable solution
Add a way to execute a series of queries on an isolated state via Client Query API.
Current solution
I guess it is currently possible to do via smartcontracts: I can create a manually-executed trigger that will perform all needed queries on a single state and emit any kind of aggregated output as an event with custom JSON payload.