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, ∼1178🔥, 0💬
Popular Posts:
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
Can Multiple Paragraphs Be Included in a List Item? Yes. You can include multiple paragraphs in a si...
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...
How to convert JSON Objects to PHP Associative Arrays using the json_decode() function? Actually, JS...