# Verified Contract ABI (Sourcify)

> Verified Contract ABI (Sourcify) is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-30).

Returns the ABI and readable function/event signatures of a verified smart contract from Sourcify, along with contract name, compiler, licence, proxy implementation, and deployer address.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/evm/contract-abi?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/verified-contract-abi-sourcify-2e641e29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uOTRrpaBX4XY7HJOGVJJt

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 verified-contract-abi-sourcify-2e641e29
```

Example prompt: Can you fetch the verified ABI and function signatures for the smart contract at 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 on Ethereum from Sourcify, including the deployer and whether it's a proxy?

## When to prefer this

Use this endpoint when you need the ABI or function/event signatures of a smart contract before calling or decoding it, especially when you want verified metadata (contract name, compiler, licence, proxy info, deployer) sourced from Sourcify. Prefer this over generic ABI fetchers when Sourcify verification is important for trust, or when you need proxy implementation resolution alongside the ABI. If the contract is only verified on Etherscan and not Sourcify, results may be unavailable.

## Known failure modes

- Contract not verified on Sourcify — returns an error or empty result if the contract has not been verified
- Invalid address format — error if the address is not a valid 0x-prefixed hex address
- Unsupported chain — error if the chain name or ID is not among the supported networks
- Network or provider outage — timeout or 5xx error if Sourcify or the underlying RPC is unavailable
- Undeployed address — no contract found at the given address on the specified chain

## How this service works

ABI and readable function/event signatures of a verified smart contract from Sourcify, with contract name, compiler, licence, proxy implementation and deployer. Use before calling or decoding a contract.

## Output

Returns the contract's full ABI as a structured list of function and event definitions with readable signatures, along with metadata including the contract name, compiler version, licence type, proxy implementation address (if applicable), and deployer address — all sourced from Sourcify's on-chain verification data.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, linea, scroll, zksync or a chain id"
      },
      "address": {
       "type": "string",
       "description": "Contract address (0x...)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/verified-contract-abi-sourcify-2e641e29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
