Fork me on GitHub

Template helloworld@0.6.0

Clause Ergo ^0.8.0 de644c30dbf916988468c2f7d8344ad48b45865e783b6d6f3354853063b19401

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": "4eda100d-2cf0-4733-980d-0beae908cab5",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "071790c0-b5f5-11e8-98f1-f70046c609b7"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Reprehenderit.",
    "transactionId": "071769b0-b5f5-11e8-98f1-f70046c609b7",
    "timestamp": "2018-09-11T19:01:02.539Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Cupidatat dolor non sit.",
    "transactionId": "071769b1-b5f5-11e8-98f1-f70046c609b7",
    "timestamp": "2018-09-11T19:01:02.539Z"
}

Events Types

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