hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

Isolated series of queries via Client Query API #5044

Open 0x009922 opened 1 month ago

0x009922 commented 1 month ago

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.