简体   繁体   中英

In Hyperledger Fabric, is there a way to decode ledger data to human readable form?

I tried to use "peer" binary to fetch blocks from ledger.

peer channel fetch 2 --channelID mychannel

However these blocks are not in human readable form. Is there a way to decode the blocks to human readable form to view the transaction data?

Yes, by using configtxlator binary that's included. For example:

configtxlator proto_decode --input the_one_you_fetched.pb --type common.Block--output human_readable.json

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM