简体   繁体   中英

How to properly deploy and use fabcar example chaincode written in node.js to AWS managed blockchain?

I followed the steps from Steps to deploy AWS NGO chaincode and instead of NGO chaincode I tried fabcar node.js chaincode from fabric samples. But I'm facing error during instantiation. I saw that the basic format of chaincodes are different but will that really cause any hindrance in the flow?

I want to know if this will work and if not how can I use fabcar javascript chaincode on AWS blockchain.

This is the error I'm facing while instantiation错误

Please guide me. Thank you.

I have created a documentation (step by step) to setup the Blockchain network and deploy the chaincode using the AWS Managed Blockchain.

https://github.com/sjais789/AWS_Managed_Bockchain_Setup

If you are stuck somewhere feel free to comment it here.

The fabcar example has fabric-contract-api. The peers in amazon managed blockchain neither have that dependency pre-installed nor it has inte.net connection to download the dependency. This is a huge problem. They've suggested to bundle the dependencies before instantiating it but haven't shown any way to do that.

However, there is a way out of this. Instead of using the usual fabcar example for javascript, if you use fabcar javascript-low-level chaincode, that does not make use of the fabric-contract-api, then you'll be able to use the chaincode in aws managed blockchain.

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