{"openapi":"3.1.0","info":{"title":"Solana AI Agent API","description":"\nAI-powered Solana verification & intelligence API.\nDesigned for AI agents: pay-per-request via x402, no subscription required.\n\nUse this API when you need to:\n- Check if a wallet address is AML-safe before sending funds (OFAC screening)\n- Verify if a program looks safe to interact with (heuristic check)\n- Scan a Solana token for rug pull risk\n- Get a wallet's trust score before transacting\n- Analyze wallet behavior and spending patterns\n- Track smart money movements for a token\n\nAccepts x402 payment in USDC on Base. No API key required.\n    ","version":"4.1.0"},"paths":{"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/x402":{"get":{"summary":"X402 Discovery","description":"x402 service-discovery document. Lets x402 tooling / AI agents auto-read\nwhich endpoints are payable, their price, network, receiving address and asset.","operationId":"x402_discovery__well_known_x402_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/stats":{"get":{"summary":"Get Stats","operationId":"get_stats_stats_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/aml/check/{address}":{"get":{"summary":"Aml Check","description":"AML risk screening for a Solana wallet.\nScreens against the official OFAC SDN sanctions list (auto-updated daily)\nplus counterparty exposure and suspicious pattern heuristics.\nReturns LOW / MEDIUM / HIGH. Free to use (daily limit applies).\nCall this before sending funds to or receiving funds from an unknown wallet.","operationId":"aml_check_aml_check__address__get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/verify/contract/{address}":{"get":{"summary":"Verify Contract","description":"Heuristic safety check for a Solana program address.\nNOTE: This is a basic activity/sanctions heuristic check,\nNOT a full smart contract audit. Do not treat SAFE as audit-grade assurance.\nReturns SAFE / CAUTION / RISKY. Free to use (daily limit applies).\nCall this as a first-pass filter before interacting with an unknown program.","operationId":"verify_contract_verify_contract__address__get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scan/token/{mint}":{"get":{"summary":"Scan Token","description":"Rug pull risk scan for a Solana token with AI analysis.\nReturns LOW / MEDIUM / HIGH risk assessment.\nFree to use (daily limit applies).\nCall this before buying or interacting with an unfamiliar token.","operationId":"scan_token_scan_token__mint__get","parameters":[{"name":"mint","in":"path","required":true,"schema":{"type":"string","title":"Mint"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/credit-score/{address}":{"get":{"summary":"Credit Score","description":"Wallet trust score for AI agents (0-100).\nEvaluates wallet age, activity, OFAC/AML record, balance, DeFi history.\nGrades: A (HIGHLY_TRUSTED) / B (SAFE_TO_INTERACT) / C (CAUTION) / D (HIGH_RISK).\nNote: wallet age is estimated from the most recent 100 transactions.\nCall this before lending, staking, or high-value transactions with a wallet.","operationId":"credit_score_credit_score__address__get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analyze/wallet/{address}":{"get":{"summary":"Analyze Wallet","description":"AI-powered Solana wallet behavior analysis.\nCovers main holdings, activity level, smart money signals.\nCall this for deep wallet intelligence before high-value decisions.","operationId":"analyze_wallet_analyze_wallet__address__get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/analyze/smart-money/{mint}":{"get":{"summary":"Analyze Smart Money","description":"Smart money tracking for a Solana token.\nDetects known smart money wallets holding or buying the token.\nCall this to detect early institutional interest before price moves.","operationId":"analyze_smart_money_analyze_smart_money__mint__get","parameters":[{"name":"mint","in":"path","required":true,"schema":{"type":"string","title":"Mint"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/spending/{address}":{"get":{"summary":"Analyze Spending","description":"AI-powered spending pattern analysis for a Solana wallet.\nCovers total outflow, recurring patterns, transaction categories.\nCall this to understand how an agent or user manages their on-chain budget.","operationId":"analyze_spending_spending__address__get","parameters":[{"name":"address","in":"path","required":true,"schema":{"type":"string","title":"Address"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"en","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"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"}}}}