Fork me on GitHub

Template helloworld@0.5.0

Clause Ergo ^0.7.1 b31501b2a779bbf0f62b9c0c3c58dcb891a4cdc7bb2bfe541420c6d33c1eb34c

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": "7b157d03-8771-4092-875e-fbc9b314772f",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "6ef3b9d0-ac5e-11e8-ae05-7b30d9585bc6"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Aliqua occaecat.",
    "transactionId": "6ef392c0-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:22.316Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Est veniam.",
    "transactionId": "6ef392c1-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:22.316Z"
}

Events Types

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