Getting Started
Install Railguard and run your first protected transaction in minutes.
Installation
From Source (Rust)
Homebrew (coming soon)
Cargo (coming soon)
Quick Start
1. Create a Configuration File
Create railguard.toml in your project directory:
2. Run Your Script Through Railguard
3. Watch the TUI
Railguard displays a live feed of transaction attempts:
Environment Variables
Railguard supports environment variable expansion in your config:
When running via rg run, Railguard automatically injects:
RPC_URL— Points tohttp://127.0.0.1:<port>ETH_RPC_URL— Same (for Foundry compatibility)
Your scripts don't need any modification—they'll automatically use the Railguard proxy.
Proxy-Only Mode
If you don't want Railguard to manage your script's lifecycle:
Testing with Anvil
For local development, point Railguard at Anvil:
Common Patterns
Deploy Script Protection
Keeper Bot Limits
Next Steps
- Configuration — Full config file reference
- Policy Engine — How inspection works
- CLI Reference — All command-line options