Skip to Content

View Deployed Hyperledger Fabric Chaincode

test
0 %
View Deployed Hyperledger Fabric Chaincode
Details
// Explore More Tutorials

View Deployed Hyperledger Fabric Chaincode

02/07/2019

Learn how to view deployed Hyperledger Fabric chaincode using the explorer area of a channel on SAP Cloud Platform

You will learn

  • How to view deployed Hyperledger Fabric chaincode
  • How to view API calls to Hyperledger Fabric chaincode
  • How to view Hyperledger Fabric chaincode logs


Step 1: View chaincode explorer

Within the Hyperledger Fabric channel dashboard, click the Explore tab to view the underlying blockchain:

Image depicting explore chaincode

In the example above, you can see that five blocks have been written to the blockchain. The first block (block 0) is the genesis block that was written when the chain was created. This includes the hash information of the block:

Image depicting explore chaincode

You then have the deployment and testing blocks associated with your hello_world examples. It is possible that your own chaincode will be displayed with further or an increased number of blocks, depending on how many deployments you have made or tests you have run.

Click on additional blocks to view their transaction details:

Image depicting explore chaincode

The explorer visualizes all transactions, including the JSON structure of the payload. Additional meta information, such as the transaction ID, is also shown. You can use the explorer to quickly validate the information the chaincode has written to the blockchain.

Which block on your chaincode is the genesis block?
×
Step 2: View API calls

Click the API Calls tab:

Image depicting explore chaincode

The API Calls area shows the HTTP REST API calls received by the API gateway and for which the corresponding chaincode functions were called.

Log on to answer question
Step 3: View chaincode logs

Click the Logs tab:

Image depicting explore chaincode

You can use the Logs area to view log statements written by the chaincode. This is also a good way to obtain telemetric data from the chaincode, especially when working to isolate a specific error condition.

Log on to answer question

Next Steps

Back to top