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, ∼1668🔥, 0💬
Popular Posts:
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximu...
How to enter & entity in '@(...)' expressions? If you want to enter the & se...
How to make application release build with Visual Studio 2017? If you want to make a final release b...
What Azure AD App Registration Manifest? Azure AD App Registration Manifest is JSON file that contai...
Where to find tutorials on Microsoft Azure services? Here is a large collection of tutorials to answ...