Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

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 casetemplaterecipe
Relay ERC20 deposits back out through a gated, simulated sendtoken-deposit-relayToken deposit relay
Alert when an ERC20 transfer crosses a thresholdlarge-transfer-alertLarge transfer alert
Liquidate underwater positions from a health-factor pollliquidation-keeperLiquidation keeper
Quote, race-check and fill ERC-7683 intentserc7683-solverERC-7683 intent solver
Park a treasury sweep behind a human approvaltreasury-sweep-approvalTreasury sweep with approval
Watch a Safe for owner and threshold changessafe-monitorSafe multisig monitor
Your script decides, rflow reads the chain, journals and reportscommand-decisionCommand decision
Your script quotes a trade, rflow signs, simulates and sends itcommand-trade-prepCommand trade prep
React to a price WebSocket feedprice-alert-streamPrice alert stream
Page when any workflow dead-lettersworkflow-error-pagerWorkflow 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-* targets

You 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.