Fork me on GitHub

Template helloworld@0.3.0

Clause Ergo ^0.5.0 3c4ecb4aa622df34472c2e1fe91132f79df9e6619df66b4430a01445759ed8fa

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": "d3266d8c-a529-499e-b94c-e2fa5b550c5e",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "f1cc7471-966d-11e8-91eb-632e912d28eb"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Ex do duis do.",
    "transactionId": "f1cc4d60-966d-11e8-91eb-632e912d28eb",
    "timestamp": "2018-08-02T16:05:58.710Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Mollit ea.",
    "transactionId": "f1cc7470-966d-11e8-91eb-632e912d28eb",
    "timestamp": "2018-08-02T16:05:58.711Z"
}

Events Types

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