# Agent402 Contract Inspect

> Agent402 Contract Inspect is a paid API for AI agents from agent402.tools, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Inspects and returns metadata about a smart contract on a specified blockchain, including ABI entries, compiler version, and verification status.

## Facts

- Endpoint: POST https://agent402.tools/api/contract-inspect
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-contract-inspect-5b879d5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_feMvKI1tguNWPL0HdyPsV

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 agent402-contract-inspect-5b879d5c -d '<json body>'
```

Example prompt: Can you inspect the smart contract at 0x8335...2913 on Base and tell me whether it's verified, what the contract name is, and how many ABI entries it has?

## When to prefer this

Use this endpoint when you need quick, structured metadata about a deployed EVM smart contract — especially verification status, ABI size, and compiler version — without needing to set up a full node or block explorer integration. Ideal for due diligence workflows, agent-driven contract auditing, or enriching on-chain address data. Prefer this over manual block explorer lookups when operating programmatically with pay-per-call pricing and no API key setup.

## Known failure modes

- Unverified or unknown contract address returns isVerified: false with minimal metadata
- Invalid or malformed 0x address returns an error response
- Unsupported chain name or chain ID results in an error
- Contract exists but source code is not publicly verified on the block explorer
- Network timeouts or upstream block explorer unavailability

## How this service works

Deep contract inspection on any Blockscout-hosted chain (dozens: Ethereum, Base, Polygon, Optimism, Arbitrum, Celo, Gnosis, …): verified source, full ABI, proxy type + implementations, compiler + license metadata - bought per call from Blockscout's Pro API over x402, no API key anywhere in the chain. Richer than contract-source (Sourcify): adds ABI + proxy resolution and far wider chain coverage.

## Output

Returns a JSON object containing the contract's name, chain ID, address, compiler version, number of ABI entries, verification status, and a flag indicating whether the content is untrusted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "chain name (base, ethereum, polygon, …) or numeric chain id (default base)"
  },
  "address": {
   "type": "string",
   "description": "contract address (0x…)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "FiatTokenProxy",
  "chain": "8453",
  "address": "0x8335…2913",
  "compiler": "v0.8.x",
  "abiEntries": 12,
  "isVerified": true,
  "untrustedContent": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-contract-inspect-5b879d5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
