Fork me on GitHub

Template helloworldstate@0.3.0

Clause Ergo ^0.4.6 114171d98a21f9bb4dff37ffdd349114ffe6538123f3c3c5f1812b3570c56139

This is the stateful 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 along with the number of times the clause has been called.

Download Archive

Hello World State

This is the stateful 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 along with the number of times the clause has been called.

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.helloworldstate.HelloWorldClause",
    "clauseId": "d61a78ce-03e1-486f-b421-0d4eb1663df8",
    "name": "Fred Blogs"
}

State Types

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

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Aliquip consectetur eiusmod.",
    "transactionId": "b0719fe0-85ed-11e8-bfc4-b186147bdb41",
    "timestamp": "2018-07-12T16:07:34.878Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Reprehenderit nostrud sint elit veniam.",
    "transactionId": "b0719fe1-85ed-11e8-bfc4-b186147bdb41",
    "timestamp": "2018-07-12T16:07:34.878Z"
}

Events Types

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