Thanks Shanwang.

You can fetch a block from each peer (or from CLI) with peer channel fetch <n>|newest -c <channel_name>. The result is in pb format. Convert it with configtxlator proto_decode then you can get back the JSON format as what I showed in the article. You can make reference to the tutorial of Add a New Org to a Channel, or the command reference of configtxlator here.

cheers, kc

Written by

Happy to share what I learn on blockchain. Visit http://www.ledgertech.biz/kcarticles.html for my works. or reach me on https://www.linkedin.com/in/ktam1/.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store