10-18-2019 9:45 AM - edited 02-04-2024 7:10 AM
I am trying to program a smart contract in GO language. It is going to calculate the total consumption value by taking consumption values from individual blocks. The information stored in a block is in the form of a json, e.g.
There are multiple blocks containing such consumption data.
1. How do I access the consumption data of individual blocks from the blockchain ?
2. Is it possible to use the proof of history API or is there another way ?
3. How to calculate and show the total consumption value(since in GO there is only invoke funtion)?
4. Do I store the consumption values in an array and sum it up ?
5. What actually is a "block" in the way we use it? e.g
Hi Aroni,
very good questions and the only answer for all five in my case is either Blockchain Connector to a HANA instance or open source CouchDB, which unfortunately is not exposed in SCP implementation of fabric.
i would be more than happy to stand corrected on either or both claims.
thank you, greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
11 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.