Commands

All commands follow the pattern chainalert <resource> <subcommand> [args] [--flags]. Every command supports --json for raw JSON output.

Command Reference

CommandDescription
healthCheck API connectivity
networks listList supported blockchain networks
templates list|getBrowse and inspect detection templates
detections list|get|create|update|delete|testFull CRUD + historical block testing
alerts list|get|statsView alerts and aggregate statistics
events list|getBrowse raw on-chain events
state-changes listView storage slot mutations
channels list|create|test|deleteManage notification channels
contracts resolve|storage-slotsResolve contract metadata and storage layout
org-contracts list|get|register|traitsRegister and inspect org contracts
rpc-configs list|add|testOverride RPC endpoints per network
login|logout|whoamiAuthenticate with your API key
config set|getManage CLI configuration
chatLaunch the AI-powered interactive REPL

Creating a Detection

Template inputs are passed via --input.<key>=<value> flags. Use templates get <slug> to see required inputs for a template.

terminal — create detection

$ chainalert detections create \

--template=large-transfer \

--name="USDC Whale Monitor" \

--network=ethereum-mainnet \

--contract=0xA0b8...eB48 \

--input.threshold=1000000 \

--input.tokenSymbol=USDC \

--severity=high \

--cooldown=30

>Detection "USDC Whale Monitor" created (active)

>ID: det_a1b2c3d4