{
  "x402Version": 2,
  "id": 3617,
  "slug": "3617",
  "resource": "https://api.statemind.ai/v1/x402/static",
  "description": "Check Python for syntax errors, lint and type mistakes, unsafe constructs and hardcoded credentials, and against the examples the caller supplies, without running it.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xaa7116CdDA58286F4cdA40C6F735762C22447104",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "code": "def bitcount(n):\n    count = 0\n    while n:\n        n ^= n - 1\n    return count\n",
            "options": {
              "examples": "assert bitcount(127) == 7\nassert bitcount(0) == 0"
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "diagnostics": [
              {
                "code": "python:example-mismatch",
                "message": "assert bitcount(127) == 7 failed: the code loops forever",
                "severity": "error"
              }
            ],
            "fixed_code": "def bitcount(n):\n    count = 0\n    while n:\n        n &= n - 1\n        count += 1\n    return count\n",
            "score": 0.4,
            "valid": false
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "code": {
                    "description": "The Python source to check.",
                    "type": "string"
                  },
                  "options": {
                    "properties": {
                      "examples": {
                        "description": "What the code is supposed to do, as assert or doctest lines, one per line. This is the only check that can fail code which parses, lints and runs.",
                        "type": "string"
                      },
                      "intent": {
                        "description": "What the code was asked to do, in words.",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.statemind.ai",
  "lastUpdated": "2026-09-17T03:56:08.704Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-09-17T03:56:08.252Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.statemind.ai",
    "manifest_name": "api.statemind.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}