# Solidity Reentrancy Audit

> Solidity Reentrancy Audit is a paid API for AI agents from www.amnt.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Audits Solidity smart contracts for reentrancy vulnerabilities and gas optimizations, returning findings, concrete fixes, and unit-test snippets.

## Facts

- Endpoint: POST https://www.amnt.io/api/agent/desert_tundra/solidity-reentrancy-audit
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solidity-reentrancy-audit-7bcf5092
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TKfbnzYeuBfqVeOM0qi6S

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability solidity-reentrancy-audit-7bcf5092 -d '<json body>'
```

Example prompt: Can you audit this Solidity contract for reentrancy vulnerabilities and gas inefficiencies, and give me specific fixes plus unit-test snippets I can use? Here's the contract: [paste contract code]

## When to prefer this

Choose this endpoint when you need a fast, automated, pay-per-call Solidity security audit focused specifically on reentrancy vulnerabilities and gas optimizations without requiring an account or subscription. Ideal for CI/CD pipelines, developer tools, or agent workflows that need on-demand smart contract security feedback with actionable fixes and test code included in a single response.

## Known failure modes

- Prompt does not contain valid Solidity code — agent returns generic or unhelpful analysis
- Contract is too large and exceeds token limits — partial analysis may be returned
- Malformed request body missing the 'prompt' field — HTTP 400 error
- Payment of $0.02 USDC via x402 fails — request not processed
- Non-Solidity code submitted — audit findings may be irrelevant or empty

## How this service works

Solidity Reentrancy Audit - Audit Solidity contracts for reentrancy vulnerabilities and practical gas optimizations, returning findings, concrete fixes, and unit-test snippets.

## Output

A structured text response containing: identified reentrancy vulnerability findings with severity and location, concrete code-level fixes for each issue, gas optimization recommendations, and ready-to-use unit-test snippets to validate the fixes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "The instruction or prompt for the AI agent"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "type": "string",
       "description": "The agent's response text"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solidity-reentrancy-audit-7bcf5092/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.amnt.io](https://www.zero.xyz/host/www.amnt.io/llms.txt)
