Hyperledger Fabric on AKS - How to interact with the blockchain/smart contract?

Folgueras, Alexandre 6 Reputation points
2020-09-30T19:58:21.47+00:00

Hello,

My company is trying to set up a blockchain using the image template Hyperledger Fabric on Azure Kubernetes Service. So far we have followed the documentation of the service and were able to deploy our blockchain successfully using the provided chaincode.
We used the following image from the marketplace: https://azuremarketplace.microsoft.com/en-us/marketplace/apps/microsoft-azure-blockchain.azure-blockchain-hyperledger-fabric-aks-based?tab=Overview

At this point however we are unsure how to interact with the blockchain and proceed with our project. We are trying to query and publish data on the blockchain from outside Azure. We understand we have to do this through the use of SDKs, but we would appreciate if we could have some documentation on the matter.

If you could also indicate how to upload our own chaincode in the Azure client that would be great.

Thanks

Community Center | Not monitored
{count} vote

3 answers

Sort by: Most helpful
  1. Sathyanarayanan Saravanamuthu 166 Reputation points
    2020-10-05T06:18:21.513+00:00

    Hi @Folgueras, Alexandre ,
    The operations like reading the blockchain and writing to the blockchain can be done using fabric peer CLI. The reference for this command can be seen here.

    Another way of reading from and writing to the blockchain is by using the fabric SDKs. The Azhlf tool provided by Microsoft uses Node SDK to interact with the blockchain. The source code of the Azhlf tool can be seen here. Documentation on using Azhlf tool with Hyperledger on AKS can be seen here.

    Neither hyperledger fabric nor azure exposes REST endpoints for invoking chaincodes.


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.