Example Index
These examples are organized as small reference implementations you can copy and adapt.Running The Sweep
Usecowboy/examples/run_examples.sh as the shared example-sweep entrypoint.
--server when you already know which validator to hit. Use --spawn-local when you want the script to boot a temporary local validator for the run.
Use --verbose when you want the raw Cowboy CLI output instead of the compact command/result formatting.
For direct demo runs outside the sweep, set COWBOY_EXAMPLES_VERBOSE=1.
Actor-To-Actor Composition
18-ring-demofor the smallest actor-to-actor message chain19-multi-actor-workflowfor request, validation, and settlement22-actor-escrow-workflowfor a CIP-20-backed buyer, seller, and escrow lifecycle29-casino-roundsfor a token-backed casino, automated bettor actors, and a separate long-running casino watcher
Runner Continuation
20-minimal-runner-continuationfor the smallest continuation and callback reference23-read-through-oracle-cachefor a refresh-once cache pattern24-failure-recoveryfor pending, failed, retried, and recovered states
Timer Examples
21-pure-timer-schedulerfor a timer-onlyon_timerloop11-alerts-and-schedulersfor a more complete scheduler example
Auth
25-auth-rolesfor owner-only admin methods and delegated roles
Simulation
26-local-simulationfor local simulation, mock host style verification, and expected output
Games
30-blackjackfor a dealer-owned blackjack table with chip escrow, split hands, and insurance
cowboy/examples/ in the repository for the runnable code and companion README files, and use run_examples.sh when you want to sweep multiple examples through one entrypoint.
Related Specs
- CIP-1: Actor Message Scheduler
- CIP-2: Verifiable Off-Chain Compute
- CIP-3: Dual-Metered Gas
- CIP-5: Native Timers
- CIP-6: Python SDK & Actor API

