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
2021-06-05, ∼1802🔥, 0💬
Popular Posts:
What are the differences of Differences of evaluateTransaction() and submitTransaction() of the fabr...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How To Avoid the Undefined Index Error in PHP? If you don't want your PHP page to give out errors as...
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service o...