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

Cookbook

Copyable recipes for real onchain jobs. Each page says what it does, when to use it, the YAML, the env vars/secrets it needs, a risk label, and safety notes — and links to a runnable template or example where one exists.

Most recipes are backed by a bundled template: scaffold a whole project with rflow new --template <id> or drop the workflow into an existing project with rflow add workflow <id> (see the templates guide). Three recipes have no template — they inline a complete, validated rflow.yaml you copy directly: hot wallet refill, stablecoin pause / blacklist monitor and cross-chain settlement saga.

Risk labels

Every recipe carries one, so you know what it can do before you run it:

LabelMeaning
monitor_onlyReads and notifies. No signer:, no relayers: — the relayer engine never boots and it cannot move funds.
prepares_txValidates/decides/dedupes and prepares a transaction, but never signs or sends.
money_movingSigns and broadcasts transactions. Every one shows simulation, gas caps, a recheck and an approval or budget — no exceptions.

Use-case matrix

Find the closest recipe fast: match your job → risk → trigger → the recipe.

Use caseRiskTriggerScaffold / runnable
Large transfer alertmonitor_onlyeventrflow new --template large-transfer-alert
Large approval alertmonitor_onlyeventrflow new --template community/large-approval-alert (community)
Chainlink oracle stalenessmonitor_onlyread (poll)rflow new --template chainlink-oracle-staleness
Workflow error pagermonitor_onlyworkflow_errorrflow new --template workflow-error-pager
Relayer low-balance alertmonitor_onlyread (poll)rflow new --template relayer-low-balance-alert
Bridge message watchmonitor_onlyeventrflow new --template bridge-message-watch
Price alert streammonitor_onlystream (WS)rflow new --template price-alert-stream
Security advisory watchmonitor_onlyweb (HTTP poll)rflow new --template security-advisory-watch
Chainlink deviation alertmonitor_onlycronrflow new --template chainlink-deviation-alert
ERC-4626 vault monitormonitor_onlyevent + readrflow new --template erc4626-vault-monitor
Uniswap v3 LP monitormonitor_onlyevent + readrflow new --template uniswap-v3-lp-monitor
ERC-721 floor sweep watchmonitor_onlyquery (poll)rflow new --template erc721-floor-sweep-watch
Solver PnL reportmonitor_onlycronrflow new --template solver-pnl-report
Uniswap v2 price alertmonitor_onlyeventrflow new --template community/uniswap-v2-price-alert (community)
ERC-20 supply watchmonitor_onlyeventrflow new --template community/erc20-supply-watch (community)
WETH wrap monitormonitor_onlyeventrflow new --template community/weth-wrap-monitor (community)
Safe multisig monitormonitor_onlyeventrflow new --template safe-monitor
Safe owner change alertmonitor_onlyeventrflow new --template safe-owner-change-alert
Proxy upgrade alertmonitor_onlyeventrflow new --template proxy-upgrade-alert
Timelock monitormonitor_onlyeventrflow new --template timelock-monitor
Stablecoin pause / blacklist monitormonitor_onlyevent + readcopy recipe (no template)
Cron HTTP reportmonitor_onlycronrflow new --template cron-http-report
Native spend reportmonitor_onlycronrflow new --template native-spend-report
Command decisionmonitor_onlycronrflow new --template command-decision · example
Webhook idempotent handlerprepares_txwebhookrflow new --template webhook-idempotent-handler
Treasury sweep with approvalmoney_movingcronrflow new --template treasury-sweep-approval · example
Hot wallet refillmoney_movingread (poll)copy recipe (no template)
Token deposit relaymoney_movingeventrflow new --template token-deposit-relay · example
Liquidation keepermoney_movingread (poll)rflow new --template liquidation-keeper · example
Aave v3 health guardianmoney_movingread (poll)rflow new --template aave-health-guardian
Solver inventory rebalancemoney_movingread (poll)rflow new --template solver-inventory-rebalance
ERC-7683 intent solvermoney_movingeventrflow new --template erc7683-solver · example
Cross-chain settlement sagamoney_movingevent + wait_forcopy recipe (no template)
Command trade prepmoney_movingeventrflow new --template command-trade-prep · example

By category

Security & governance

Monitoring & alerting

Treasury

Relaying, keepers & intents

Off-chain & custom logic

Every full recipe validates

The cookbook's full configs are not decoration — they are checked in CI. documentation/scripts/check-recipes.mjs extracts every complete rflow.yaml from these pages and runs the real rflow validate over each in a throwaway project (ABIs stubbed, env vars stubbed). Yaml blocks are classified by a first-line marker:

  • # recipe: full — a complete rflow.yaml; the validator asserts it passes.
  • # recipe: partial — a fragment (one trigger/step/section) shown for teaching; skipped.

An unmarked yaml block in a cookbook page fails the check, so nothing escapes classification. Run it locally with node scripts/check-recipes.mjs from documentation/ (it builds rflow if needed).