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, ∼1568🔥, 0💬
Popular Posts:
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
dev.FYIcenter.com is a Website for software developer looking for software development technologies,...
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collecti...