Fork me on GitHub

Template helloworld@0.4.0

Clause Ergo ^0.6.0 fb1b0a1df819c59991cadf9699cae9767cc057f72015d0d3ed3a436d697bb7ad

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": "e3870150-072b-4cc9-ba2f-d5b457e6c3af",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "b9d0ebc0-a1a6-11e8-86b3-1f0c7a1796ef"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Velit duis sint officia mollit.",
    "transactionId": "b9d00160-a1a6-11e8-86b3-1f0c7a1796ef",
    "timestamp": "2018-08-16T22:50:08.886Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Voluptate nostrud magna exercitation.",
    "transactionId": "b9d0c4b0-a1a6-11e8-86b3-1f0c7a1796ef",
    "timestamp": "2018-08-16T22:50:08.891Z"
}

Events Types

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