{
  "ok": true,
  "service": "Solana Transaction Decoder API",
  "endpoints": {
    "POST /decode": {
      "body": {
        "input": "Solscan URL, signature, parsed JSON object, or base64",
        "rpcUrl": "optional RPC URL"
      }
    },
    "GET /decode?tx=<signature-or-solscan-url>": "Decode via RPC",
    "GET /api/decode/<signature>": "Decode signature via path",
    "GET /api/decode-stream/<signature>": "Stream decode events as NDJSON",
    "GET /health": "Health check",
    "GET /api/positions/<wallet>": "Cek posisi token yang dipegang wallet",
    "POST /api/positions": {
      "body": {
        "wallet": "wallet address",
        "rpcUrl": "optional"
      }
    },
    "GET /api/wallet/<address>/analytics?limit=100": "Win rate, PnL, trade history",
    "POST /api/wallet/analytics": {
      "body": {
        "wallet": "address",
        "limit": 100,
        "rpcUrl": "optional"
      }
    }
  }
}