Dushyanth Kumar Reddy
Dushyanth Kumar Reddy

Reputation: 1232

How to interact with the chaincode (installed using composer) through peer node cli?

I had developed an application using composer. But it is now deprecated. So i'm trying at least to use the chaincode generated using composer.

Is it possible to interact with the chaincode generated using composer through 'peer chaincode' command?

Upvotes: 1

Views: 58

Answers (1)

david_k
david_k

Reputation: 5868

Composer doesn't generate chaincode. A business network is tightly bound to the composer framework. A business network is an implementation written to the composer specification and contains the composer runtime to understand and interpret that implementation at runtime. Therefore a Composer Business network is not standalone chaincode.

The client side of composer for client application provides the necessary operational tools as well as the business application apis in order to correctly interact with a business network. Although technically you could work out how to invoke a business network from client code without using composer it would not be trivial.

Upvotes: 2

Related Questions