Access Hyperledger REST API remotely RRS feed

  • Question

  • Hello

    I set up Hyperledger single node blockchain from Azure Marketplace.

    I successfully deployed the fabric sample "fabcar" application from these instructions:

    I can query the ledger as described in the documentation.

    Now I want to access my blockchain remotely through the API. So for example I issue the following:

    curl http://[prefix].northcentralus.cloudapp.azure.com/chain

    but this gives a failed to connect message.

    If I specify the port for the first transaction node:

    curl http://[prefix].northcentralus.cloudapp.azure.com:3000/chain

    I get an error: curl (56) Recv failure: connection was reset

    Grateful for any suggestions.

    Padraic Heneghan

    Monday, October 2, 2017 11:03 PM


All replies

  • Hi Padraic Heneghan,

    We apologize about the delay!

    Ever since the Hyperledger Fabric team has rebooted the architecture and released Fabric 1.0, the REST API functionality has been deprecated.

    We have upgraded our templates to Hyperledger Fabric v1.0.1 and the preferred communication with the Fabric is through the use of SDKs, Node and Java are available as of now.

    Please see http://hyperledger-fabric.readthedocs.io/en/latest/fabric-sdks.html

    You can also use Fabric Composer to generate a REST API.

    Please see https://hyperledger.github.io/composer/tutorials/developer-guide.html

    We hope this helps!

    Microsoft Azure Blockchain Team

    Wednesday, October 25, 2017 6:39 PM
  • But in another post you said that Composer is not supported?!
    Thursday, May 17, 2018 12:29 AM
  • Also, the link is defunct
    Thursday, May 17, 2018 12:29 AM
  • Hi,

    We've gotten a lot of great feedback from customers like yourself that Fabric Composer is one of the preferred methods for interacting with a Hyperledger deployment. Unfortunately, it's quite difficult to set up manually. With this in mind, we are working on an Azure Fabric Composer template that will automate setup and allow you to use Composer out of the box.

    Stay tuned - we'll be releasing this soon.


    Microsoft Azure Blockchain Team

    Friday, May 18, 2018 6:23 PM