Hello World

Author: Accord Project

helloworld@0.15.0 Clause ^0.26.0 c48b8af08f13dfa83db4cfdd0fc67e3967a7f152144fa36e2dd4ea7a896f212d

This is the Hello World of Accord Project 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 Download Compiled Archive Open in Template Playground Open in VSCode Web

Hello World

This is the Hello World of Accord Project 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.

Template Text

Name of the person to greet: "Fred Blogs". Thank you!

Name of the person to greet: "Fred Blogs".
Thank you!
Name of the person to greet: {{name}}.
Thank you!
{
  "$class": "org.accordproject.helloworld@0.1.0.TemplateModel",
  "name": "Fred Blogs",
  "clauseId": "b56b28a7-3974-4e0c-8c0c-3f5c7c99343d",
  "$identifier": "b56b28a7-3974-4e0c-8c0c-3f5c7c99343d"
}

Template Model

namespace org.accordproject.helloworld@0.1.0

import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto

transaction MyRequest extends Request {
  o String input
}

transaction MyResponse extends Response {
  o String output
}

@template
asset TemplateModel extends Clause {
  o String name
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.runtime@0.2.0.State
{
    "$class": "org.accordproject.runtime@0.2.0.State",
    "$identifier": "7a1940d0-50a4-11f1-a498-6b6dff021a96"
}

Request Types

Type Sample JSON
org.accordproject.helloworld@0.1.0.MyRequest
{
    "$class": "org.accordproject.helloworld@0.1.0.MyRequest",
    "input": "Sint voluptate.",
    "$timestamp": "2026-05-15T21:24:37.853Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-05-15T21:24:37.853Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld@0.1.0.MyResponse
{
    "$class": "org.accordproject.helloworld@0.1.0.MyResponse",
    "output": "Voluptate reprehenderit occaecat ullamco.",
    "$timestamp": "2026-05-15T21:24:37.853Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-05-15T21:24:37.853Z"
}

Events Types

Type Sample JSON

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.