Fork me on GitHub

Template helloworld@0.2.1

Clause Ergo ^0.4.4-0 ab1c4c3187cefd7e40733e4165e001b7cf29e993de4423eda8557f500ed80c85

This is the Hello World of Accord Protocol Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request.

Download Archive

Hello World

This is the Hello World of Accord Protocol Templates. Executing the clause will simply echo back the text that occurs after the string Hello prepended to text that is passed in the request.

Sample

Name of the person to greet: "Fred Blogs".
Thank you!
                

Model Dependencies

Technical Integration

Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.

View the Latest code for this template on on GitHub.

Sample Instance

{
    "$class": "org.accordproject.helloworld.HelloWorldClause",
    "clauseId": "c03007b9-c0a0-4662-92f0-14557bcee8bd",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "b008a4e2-85ed-11e8-bfc4-b186147bdb41"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Aliquip.",
    "transactionId": "b008a4e0-85ed-11e8-bfc4-b186147bdb41",
    "timestamp": "2018-07-12T16:07:34.190Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Officia deserunt ex duis.",
    "transactionId": "b008a4e1-85ed-11e8-bfc4-b186147bdb41",
    "timestamp": "2018-07-12T16:07:34.190Z"
}

Events Types

Type Sample JSON
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}