Examples
You do not need to clone anything to try rflow. Every example concept ships as a template: one command scaffolds it into a complete, validated project.
rflow new --template token-deposit-relay
rflow templates ls # browse all 27 (--category, --risk, --json)The flagship use cases, their template ids and their cookbook recipes:
| use case | template | recipe |
|---|---|---|
| Relay ERC20 deposits back out through a gated, simulated send | token-deposit-relay | Token deposit relay |
| Alert when an ERC20 transfer crosses a threshold | large-transfer-alert | Large transfer alert |
| Liquidate underwater positions from a health-factor poll | liquidation-keeper | Liquidation keeper |
| Quote, race-check and fill ERC-7683 intents | erc7683-solver | ERC-7683 intent solver |
| Park a treasury sweep behind a human approval | treasury-sweep-approval | Treasury sweep with approval |
| Watch a Safe for owner and threshold changes | safe-monitor | Safe multisig monitor |
| Your script decides, rflow reads the chain, journals and reports | command-decision | Command decision |
| Your script quotes a trade, rflow signs, simulates and sends it | command-trade-prep | Command trade prep |
| React to a price WebSocket feed | price-alert-stream | Price alert stream |
| Page when any workflow dead-letters | workflow-error-pager | Workflow error pager |
The cookbook has one recipe page per template, and the template registry documents categories, risk labels and the safety rails every money-moving template renders.
Full local demos
The repo's examples/
directory serves a different job: watching a complete loop run against a
local anvil chain, deposits in, relayed sends out to CONFIRMED, no external
dependencies. Each example is a full project (rflow.yaml + abis/ +
Makefile) and one make target from the repo root boots everything: chain,
postgres, deploy and funding, rflow, and an automatic trigger once indexing is
live, with Ctrl-C cleaning up.
make run-token-transfer-relay # `make help` lists the other run-* targetsYou need Foundry, Docker and Rust. The mnemonic
committed in the examples' .env.example files is dev-only, published so the
relayer addresses are deterministic; never hold real funds on it.