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, 1011🔥, 0💬
Popular Posts:
How to troubleshoot the Orderer peer? The Docker container terminated by itself. You can follow this...
How to use the "find-and-replace" Policy Statement for an Azure API service operation? The "find-and...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How To Read the Entire File into a Single String in PHP? If you have a file, and you want to read th...
How to send an FTP request with the urllib.request.urlopen() function? If an FTP server supports ano...