Hello Module

Author: Accord Project

hellomodule@1.0.0 Clause ^1.0.0 b9337bd6227ab7aa8cb56ab476cc1136bb1da5c3240abc24c0a3113248f261db

This is the Hello World of Accord Project Templates, with two Ergo modules.

Download Archive Download Compiled Archive Open in Template Playground Open in VSCode Web

Hello Module

This is the Hello World of Accord Project Templates, with two Ergo modules.

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.hellomodule@0.1.0.TemplateModel",
  "name": "Fred Blogs",
  "clauseId": "f7a54995-ce97-4245-91aa-75e0f34d2b78",
  "$identifier": "f7a54995-ce97-4245-91aa-75e0f34d2b78"
}

Template Model

namespace org.accordproject.hellomodule@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": "1beae0e0-603f-11f1-9952-b99097577248"
}

Request Types

Type Sample JSON
org.accordproject.hellomodule@0.1.0.MyRequest
{
    "$class": "org.accordproject.hellomodule@0.1.0.MyRequest",
    "input": "Nisi eiusmod culpa ut cupidatat.",
    "$timestamp": "2026-06-04T18:59:19.278+01:00"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-06-04T18:59:19.278+01:00"
}

Response Types

Type Sample JSON
org.accordproject.hellomodule@0.1.0.MyResponse
{
    "$class": "org.accordproject.hellomodule@0.1.0.MyResponse",
    "output": "Aute et enim.",
    "$timestamp": "2026-06-04T18:59:19.278+01:00"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-06-04T18:59:19.278+01:00"
}

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.