i want to fetch data from blockchain ledger instead of statedb like couch and leveldb.i want to write chaincode method that count the total record from blockchain ledger.
Chaincode API doesn't provide such functionality if I'm not mistaken, you can only get state by key or perform a rich query if you use couchdb for example.
2.1m questions
2.1m answers
63 comments
56.6k users