Hi Shanwang,

Assuming in First Network setup, go to the CLI container.

docker exec -it cli bash

The CLI default will access peer0.org1.example.com. Then you can fetch a block either newest, or specifying the block number (reference).

peer channel fetch newest | (number)

You will get back a file in pb format. Finally you can decode it into JSON such that you can read it (reference).

configtxlator proto_decode --type=common.Block --input <pb_file> --output <json_file>

The file is still inside CLI container. You can docker cp it to localhost for easy reading.

You can locate endorsement in the JSON file, in which you can see the endorsers, their signatures, and the RWSet.

HTH… 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