AEP On-Chain Monitor

When to Use

  • User wants to monitor security events (Frozen, DefaultDeclared, BreachDeclared)
  • User needs webhook alerts for account or relationship events
  • User asks about aep monitor or PolicyRecordSpendFailed, UserOperationRevertReason

Usage

aep monitor

Emits JSON lines to stdout. Optional webhook POST when configured.

Config

~/.aep/config.json:

{
  "monitor": {
    "accounts": ["0x..."],
    "facilities": ["0x..."],
    "slas": ["0x..."],
    "webhookUrl": "https://...",
    "pollIntervalMs": 12000
  }
}

Uses account when monitor.accounts is empty.

Events

  • Frozen — Account frozen (kill switch)
  • DefaultDeclared — Credit facility default
  • BreachDeclared — SLA breach
  • PolicyRecordSpendFailed — Policy module recordSpend reverted
  • UserOperationRevertReason — UserOp execution failed