Andamio Logo
Protocol/Protocol V2/Transaction sequences

Course · Author & operate

How an owner creates a course and teachers populate it with learning modules.

Standing up a course is three beats: an owner mints the course instance, teachers add the learning modules, and the owner manages who can teach. Each beat is one transaction keyed on the course's policy ID.

Course · Author & operate

An owner stands up a course instance on-chain, then teachers populate it with learning modules and the owner adjusts who can teach. Each beat is a single transaction keyed on the course's policy ID.

Step 1

Create Course

Actor
Course Owner
On-chain effect

Validator action. instance_governance: governance action (mint course instance)

Token Δ. Mints a new course instance on-chain, registering the creator as owner and first teacher. Returns the course's policy ID (courseId).

Resulting state
Course instance exists on-chain; the creator is owner and first teacher; courseId is issued for all subsequent course operations.
Build endpoint
POST /api/v2/tx/instance/owner/course/create
Transaction lifecycle

Step 2

Manage Modules

Actor
Teacher
On-chain effect

Validator action. module_scripts: MintModule

Token Δ. Mints, updates, and/or burns module tokens in one batch — each module holds a Student Learning Target (SLT) and its criteria. Burned modules recover their UTxO deposit.

Resulting state
The course's modules are live on-chain; students can commit to them. Prerequisite chains between modules are recorded.
Build endpoint
POST /api/v2/tx/course/teacher/modules/manage
Transaction lifecycle

Step 3

Manage Teachers

Actor
Course Owner
On-chain effect

Validator action. instance_governance: governance action (update teacher list)

Token Δ. No token mint or burn — updates the on-chain teacher-list datum, replacing the previous set entirely.

Resulting state
The course's teacher list is updated on-chain and mirrored to the database; only listed teachers can manage modules and assess assignments.
Build endpoint
POST /api/v2/tx/course/owner/teachers/manage
Transaction lifecycle