{"name":"onyx_agent_audit_trail","tier":"metered","price_usdc":"0.05","endpoint":"https://onyx-actions.onrender.com/v1/onyx_agent_audit_trail","method":"POST","input_schema":{"type":"object","properties":{"wallet":{"type":"string","description":"Agent wallet address on Base (0x... 20-byte hex)."},"lookback_blocks":{"type":"integer","minimum":100,"maximum":50000,"default":5000,"description":"Block range to scan (Base is ~2s/block → 5000 blocks ≈ 2.8h, 10000 ≈ 5.5h, 50000 ≈ 28h)."},"limit":{"type":"integer","minimum":1,"maximum":100,"default":30,"description":"Max events to return (truncated newest-first)."}},"required":["wallet"]},"description":"Full payment + action audit trail for any agent wallet on Base. Returns every USDC outflow with resolved x402 destination, tool name where known, timestamp, tx hash, cumulative spend, velocity, and behavioral risk flags. The audit log every agent operator needs — what has my agent actually been paying for and when. Powers compliance, ops review, anomaly detect.","when_to_use":"Agent operator wants to know: what has my agent been paying for? Compliance officer needs audit log. Anomaly detection. Bot ops review.","vs_alternatives":"BaseScan shows USDC transfers but no commerce context. Off-the-shelf indexers (Alchemy, Moralis) require API keys and don't resolve x402 endpoints. This tool maps transfers to x402 services via CDP discovery.","example_request":{"wallet":"0x4466d4a84b7c49a6a094ec6eef4a0712d6dd125e","lookback_blocks":10000,"limit":20},"example_response":null,"settle_to":"0x3fD9ee1373562f894D322B37DFFAd7a5D2b2d78f","network":"base","facilitator":"https://facilitator.xpay.sh","payment_required":true,"free_introspection":true,"note":"GET this URL = free introspection card. POST with x402 payment header to call."}