Interactive Examples

Try State Machines Yourself

Hands-on interactive playgrounds where you can create state machines and oracles, connect your wallet, send events, and see real-time state changes on the blockchain.

📚New to State Machines?

Before diving into examples, learn the fundamentals

Available Playgrounds

Approval Workflow

Beginner

A simple 4-state workflow demonstrating basic transitions, guards, and effects

States

4

Key Features

Basic transitions
Simple guards
Event data capture
📦

Order Fulfillment

Beginner

Track orders from pending to delivery with confirmation, shipping, and cancellation

States

5

Key Features

Linear workflow
Order tracking
Cancellation handling
Multiple final states
🚚

Fuel Logistics with GPS Tracking

Advanced

Contract workflow with GPS sub-machine demonstrating cross-machine dependencies and self-transitions

States

16

Machines

2

Key Features

GPS tracking sub-machine
Self-transitions
Cross-machine dependencies
Computed fields
🔮

Oracle Calculator (Stateless)

Intermediate

Stateless script oracle that performs basic arithmetic operations

States

4

Key Features

Stateless oracle
Method routing
Arithmetic operations
JSON Logic scripts
🗳️

Voting Oracle (Stateful)

Advanced

Stateful script oracle that maintains voting state across invocations

States

5

Key Features

Stateful oracle
State transitions
Business rule enforcement
Data accumulation