{"openapi":"3.1.0","info":{"title":"Aidan wallet-insight","description":"Analisis on-chain de wallets en Base cobrado por request via x402 (USDC en Base, sin API key).","version":"1.1.0","x-guidance":"POST /api/v1/wallet-insight con body JSON {\"address\":\"0x..\",\"chain\":\"base\",\"depth\":10} devuelve balances (ETH/USDC), tx recientes, contratos top, is_contract y un risk_score + resumen. Pago via x402 (USDC en Base). Alternativa de pago directo on-chain en /api/v1/wallet-insight-direct.","contact":{"email":"me@aitorsr.es"}},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/wallet-insight":{"post":{"summary":"Wallet Insight","operationId":"wallet_insight_api_v1_wallet_insight_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsightResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"x402":{}}]}}},"/api/v1/wallet-insight-direct":{"post":{"summary":"Wallet Insight Direct","operationId":"wallet_insight_direct_api_v1_wallet_insight_direct_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DirectInsightRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"DirectInsightRequest":{"properties":{"address":{"type":"string","title":"Address"},"chain":{"type":"string","title":"Chain","default":"base"},"depth":{"type":"integer","title":"Depth","default":10},"payment_tx":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Tx"}},"type":"object","required":["address"],"title":"DirectInsightRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InsightRequest":{"properties":{"address":{"type":"string","title":"Address"},"chain":{"type":"string","title":"Chain","default":"base"},"depth":{"type":"integer","title":"Depth","default":10}},"type":"object","required":["address"],"title":"InsightRequest"},"InsightResponse":{"properties":{"address":{"type":"string","title":"Address"},"network":{"type":"string","title":"Network"},"balance_eth":{"type":"string","title":"Balance Eth"},"balance_usdc":{"type":"string","title":"Balance Usdc"},"tx_count_recent":{"type":"integer","title":"Tx Count Recent"},"top_contracts":{"items":{"type":"string"},"type":"array","title":"Top Contracts"},"is_contract":{"type":"boolean","title":"Is Contract"},"risk_score":{"type":"number","title":"Risk Score"},"summary":{"type":"string","title":"Summary"},"timestamp":{"type":"string","title":"Timestamp"}},"type":"object","required":["address","network","balance_eth","balance_usdc","tx_count_recent","top_contracts","is_contract","risk_score","summary","timestamp"],"title":"InsightResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}