{
  "x402Version": 2,
  "id": 32292,
  "slug": "32292",
  "resource": "https://agentforge-taupe.vercel.app/v1/code-review",
  "description": "Smart contract security audit for developers and auditors: finds vulnerabilities, gas optimizations, and best-practice violations in Solidity, Rust, Move, or TypeScript code, with a diff review mode for proposed changes. Category: inference.",
  "type": "http",
  "serviceName": "AgentForge",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1789936236/bazaar-icons/514693b4ba32275a.png",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFA6F352E71c44d217df04eCAD902C82B72D2378c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFA6F352E71c44d217df04eCAD902C82B72D2378c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "gasOptimization": {
            "description": "Gas optimization report (when focus includes gas)",
            "type": "object"
          },
          "issues": {
            "items": {
              "properties": {
                "category": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "line": {
                  "type": "number"
                },
                "severity": {
                  "enum": [
                    "info",
                    "low",
                    "medium",
                    "high",
                    "critical"
                  ],
                  "type": "string"
                },
                "suggestion": {
                  "type": "string"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "metadata": {
            "properties": {
              "linesAnalyzed": {
                "type": "number"
              },
              "model": {
                "type": "string"
              },
              "processingTimeMs": {
                "type": "number"
              }
            },
            "type": "object"
          },
          "overallRisk": {
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ],
            "type": "string"
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "overallRisk",
          "issues",
          "summary",
          "metadata"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "category": "security",
      "discoverable": true,
      "info": {
        "input": {
          "body": {
            "code": "pragma solidity ^0.8.0;\ncontract Example {\n  function withdraw() public {\n    payable(msg.sender).transfer(address(this).balance);\n  }\n}",
            "focus": "security",
            "language": "solidity"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "issues": [
              {
                "category": "access-control",
                "description": "withdraw() has no access control modifier",
                "line": 3,
                "severity": "high",
                "suggestion": "Add an onlyOwner modifier or equivalent check"
              }
            ],
            "metadata": {
              "linesAnalyzed": 5,
              "model": "claude-sonnet-5",
              "processingTimeMs": 850
            },
            "overallRisk": "high",
            "summary": "1 high severity issue found: missing access control on withdraw()."
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "code": {
                    "description": "Source code to review",
                    "maxLength": 50000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "focus": {
                    "default": "all",
                    "enum": [
                      "security",
                      "gas_optimization",
                      "best_practices",
                      "all"
                    ],
                    "type": "string"
                  },
                  "language": {
                    "default": "solidity",
                    "enum": [
                      "solidity",
                      "rust",
                      "move",
                      "typescript"
                    ],
                    "type": "string"
                  },
                  "previousCode": {
                    "description": "Previous version of code for diff review mode",
                    "maxLength": 50000,
                    "type": "string"
                  }
                },
                "required": [
                  "code"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "gasOptimization": {
                    "description": "Gas optimization report (when focus includes gas)",
                    "type": "object"
                  },
                  "issues": {
                    "items": {
                      "properties": {
                        "category": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "line": {
                          "type": "number"
                        },
                        "severity": {
                          "enum": [
                            "info",
                            "low",
                            "medium",
                            "high",
                            "critical"
                          ],
                          "type": "string"
                        },
                        "suggestion": {
                          "type": "string"
                        }
                      },
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "metadata": {
                    "properties": {
                      "linesAnalyzed": {
                        "type": "number"
                      },
                      "model": {
                        "type": "string"
                      },
                      "processingTimeMs": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "overallRisk": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ],
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  }
                },
                "required": [
                  "overallRisk",
                  "issues",
                  "summary",
                  "metadata"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      },
      "tags": [
        "code review",
        "smart contract audit",
        "solidity",
        "vulnerability scan",
        "gas optimization"
      ]
    }
  },
  "tags": [
    "code review",
    "smart contract audit",
    "solidity",
    "vulnerability scan",
    "gas optimization",
    "bazaar"
  ],
  "sourceHost": "agentforge-taupe.vercel.app",
  "lastUpdated": "2026-10-08T06:12:14.431Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:12:14.303Z"
  },
  "metadata": {
    "serviceName": "AgentForge",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1789936236/bazaar-icons/514693b4ba32275a.png",
    "extensions": {
      "bazaar": {
        "category": "security",
        "discoverable": true,
        "info": {
          "input": {
            "body": {
              "code": "pragma solidity ^0.8.0;\ncontract Example {\n  function withdraw() public {\n    payable(msg.sender).transfer(address(this).balance);\n  }\n}",
              "focus": "security",
              "language": "solidity"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "issues": [
                {
                  "category": "access-control",
                  "description": "withdraw() has no access control modifier",
                  "line": 3,
                  "severity": "high",
                  "suggestion": "Add an onlyOwner modifier or equivalent check"
                }
              ],
              "metadata": {
                "linesAnalyzed": 5,
                "model": "claude-sonnet-5",
                "processingTimeMs": 850
              },
              "overallRisk": "high",
              "summary": "1 high severity issue found: missing access control on withdraw()."
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "code": {
                      "description": "Source code to review",
                      "maxLength": 50000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "focus": {
                      "default": "all",
                      "enum": [
                        "security",
                        "gas_optimization",
                        "best_practices",
                        "all"
                      ],
                      "type": "string"
                    },
                    "language": {
                      "default": "solidity",
                      "enum": [
                        "solidity",
                        "rust",
                        "move",
                        "typescript"
                      ],
                      "type": "string"
                    },
                    "previousCode": {
                      "description": "Previous version of code for diff review mode",
                      "maxLength": 50000,
                      "type": "string"
                    }
                  },
                  "required": [
                    "code"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "gasOptimization": {
                      "description": "Gas optimization report (when focus includes gas)",
                      "type": "object"
                    },
                    "issues": {
                      "items": {
                        "properties": {
                          "category": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "line": {
                            "type": "number"
                          },
                          "severity": {
                            "enum": [
                              "info",
                              "low",
                              "medium",
                              "high",
                              "critical"
                            ],
                            "type": "string"
                          },
                          "suggestion": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "metadata": {
                      "properties": {
                        "linesAnalyzed": {
                          "type": "number"
                        },
                        "model": {
                          "type": "string"
                        },
                        "processingTimeMs": {
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "overallRisk": {
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ],
                      "type": "string"
                    },
                    "summary": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "overallRisk",
                    "issues",
                    "summary",
                    "metadata"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        },
        "tags": [
          "code review",
          "smart contract audit",
          "solidity",
          "vulnerability scan",
          "gas optimization"
        ]
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentforge-taupe.vercel.app",
    "manifest_name": "agentforge-taupe.vercel.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "gasOptimization": {},
      "issues": [
        {
          "category": "string",
          "description": "string",
          "line": 0,
          "severity": "info",
          "suggestion": "string"
        }
      ],
      "metadata": {
        "linesAnalyzed": 0,
        "model": "string",
        "processingTimeMs": 0
      },
      "overallRisk": "low",
      "summary": "string"
    },
    "type": "string"
  }
}