To capture events do we need to create assets using transaction processing functions?

0 votes

I am working on a POC and do not want to write any specific transaction processing functions. Created assets, participants etc. and all, so the model is ready. Generated rest api using hyperledger composer-rest-server. The frontend is developed in simple html/javascript. the problem is that i need events also available whenver i CRUD using composer generated APIs, but not able to figure out how. IS it that to capture events, we need to create assets using transaction processing functions only and not via composer rest server apis - a little novice kinda question but i am stuck in this thought.

Aug 9, 2018 in Blockchain by Shashank
• 10,350 points
31 views

1 answer to this question.

0 votes

I think you have figured it by now, but here's the answer for the rest of us: you can only generate events from your chaincode, and every event has to be described in your model.

answered Aug 9, 2018 by Christine
• 15,790 points

Related Questions In Blockchain

+1 vote
1 answer

Do we need metamask extension to make transactions on ether?

Actually, we don't need Metamask. To make ...READ MORE

answered Apr 7, 2018 in Blockchain by Perry
• 17,020 points
91 views
0 votes
1 answer
0 votes
1 answer

Using web3swift to create raw transaction.

Here you go: var options = Web3Options.defaultOptions() options.gasLimit = ...READ MORE

answered Jul 31, 2018 in Blockchain by digger
• 26,550 points
90 views
0 votes
1 answer

How to create raw transaction using web3swift?

var options = Web3Options.defaultOptions() options.gasLimit = BigUInt(21000) options.from = ...READ MORE

answered Sep 17, 2018 in Blockchain by slayer
• 29,170 points
42 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
83 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
170 views
0 votes
1 answer
0 votes
1 answer

How to create an asset on Bigchaindb server using http call

You could start like this: method = POST URL ...READ MORE

answered Sep 19, 2018 in Blockchain by Christine
• 15,790 points
190 views