Tools, FAQ, Tutorials:
"transaction" Data Type Declared in CTO
How to declare a "transaction" data type in the CTO model file?
✍: FYIcenter.com
If you want your Hyplerledger Composer business network
to accept a business transaction, you need to use the "transaction"
CTO statement to declare a "transaction" data type
in a CTO model file.
The "transaction" data type specifies how many properties are expected in the transaction request input message.
Here is an example of a CTO file, models/hello.cto, that declares transaction data type called "Hello". The transaction request input message expects a single property called "name".
/* models/hello.cto * Copyright (c) FYIcenter.com */ namespace com.fyicenter.hyperledger.hello transaction Hello { o String name default="World" }
⇒ "transaction" Process Function Defined in JS
⇐ "transaction" Process Function Syntax
2019-04-23, 239👍, 0💬
Popular Posts:
How to access Request body from "context.Request.Body" object in Azure API Policy? Request body is t...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...
How To Submit Values without Using a Form in PHP? If you know the values you want to submit, you can...
How to use "link" command tool to link objet files? If you have object files previously compiled by ...
Where to find tutorials on how to work with MySQL Database in PHP? A collection of tutorials to answ...