Cloud Global

 View Only
  • 1.  How to deploy .BNA file on IBM cloud blockchain 2.0 resource?

    Posted Wed February 03, 2021 10:05 AM

    I am trying to set up a rest API that is connected to an IBM blockchain resource. I have developed a model file, logic file, and acl file. I have it all packed up in a nice tidy.BNA, and now I would like to deploy it to a channel of my IBM cloud blockchain 2.0 resource, running on a free Kubernetes cluster.

    Everything on the cloud blockchain resource is set up perfectly, and all orgs, peers, orderers, msps, and CAs are set up correctly. The channel is set up properly and has nodes and an MSP connected. I have all the admin cred .jsons

    The channel only accepts smart contract files, so I tried repackaging the files (logic.js, permissions.acl, and model.cto) by putting them in a contract folder, and using the IBM Blockchain vsCode plugin to package them as a smart contract, but trying to install on the IBM cloud crashes the browser.

    I am thinking maybe I have to remote connect into the IBM Kubernetes cluster that the blockchain resource is sitting on, and use the hyper ledger composer CLI to install the.BNA Seems very unintuitive, but that's the one thing I can think to try while I wait for this question to get answered.

    I expected to just be able to install the.BNA as a smart contract, like a .cds.

    http://bit.ly/39IMmN1



    ------------------------------
    Christina Joy
    ------------------------------


  • 2.  RE: How to deploy .BNA file on IBM cloud blockchain 2.0 resource?

    Posted Sat February 06, 2021 02:10 PM
    Hyperledger Composer was deprecated in 2018 and is no longer actively developed. The IBM Blockchain Platform does not support deployment of BNA files developed with Hyperledger Composer. We recommend that you use Hyperledger Fabric smart contracts or "chaincode" to develop your applications for the IBM Blockchain Platform.

    ------------------------------
    Simon Stone
    ------------------------------



  • 3.  RE: How to deploy .BNA file on IBM cloud blockchain 2.0 resource?

    Posted Mon February 08, 2021 06:43 PM
    Hi Christina,

    Since you provided a link with some course, that might be out-of-date, thought I'd provide great learning courses for Blockchain.  These courses in Cognitive Class are free and usually up-to-date.

    Blockchain Essentials
    Blockchain for Developers (learning path)

    You can earn badges as well. Happy learning!

    ------------------------------
    Eri Hattori
    ------------------------------