# Base Contract ABI

> Base Contract ABI is a paid API for AI agents from api.arysphere.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-17).

Returns the ABI of a smart contract on the Base network given its contract address, including proxy detection and implementation resolution.

## Facts

- Endpoint: GET https://api.arysphere.com/v1/ventures/x402_chain_reads_v1/base_contract_abi?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-contract-abi-e6d4712d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NF7P0Xk9v6F_MHW6SOO_s

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 base-contract-abi-e6d4712d
```

Example prompt: Can you fetch the ABI for the Base contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 and tell me if it's a proxy and what the implementation is?

## When to prefer this

Use this endpoint when you need the ABI of a contract specifically deployed on the Base (Coinbase L2) network, especially when proxy pattern resolution matters. Prefer this over generic Ethereum ABI fetchers when the contract is Base-native. Ideal when building integrations, auditing contract interfaces, or programmatically calling Base contracts without a hardcoded ABI.

## Known failure modes

- Invalid address format (not 0x + 40 hex) returns validation error
- Unverified contract with no ABI available returns empty or partial result
- Contract address not found on Base returns not-found error
- Network timeout or RPC node unavailability causes request failure
- Address is an EOA (externally owned account), not a contract, returns no ABI

## How this service works

ARYSPHERE sells AI-written verdicts on Base token contracts (a grade, a one-liner, a roast and the contract's facts) and Base/Ethereum chain reads, paid per call in USDC on Base over x402 v2. No account and no API key.

## Output

Returns a JSON object with the contract's full ABI array, whether it's verified, whether it's a proxy (and the proxy type such as ZeppelinOSProxy), the implementation contract address and name if proxied, the queried address, and a match type indicating exact or partial ABI resolution.

## 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",
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{40}$",
       "description": "contract, 0x + 40 hex"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "chain": "base",
  "method": "abi",
  "result": {
   "abi": [
    {
     "type": "constructor",
     "inputs": [
      {
       "name": "implementationContract",
       "type": "address",
       "internalType": "address"
      }
     ],
     "stateMutability": "nonpayable"
    },
    {
     "name": "AdminChanged",
     "type": "event",
     "inputs": [
      {
       "name": "previousAdmin",
       "type": "address",
       "indexed": false,
       "internalType": "address"
      },
      {
       "name": "newAdmin",
       "type": "address",
       "indexed": false,
       "internalType": "address"
      }
     ],
     "anonymous": false
    },
    ""
   ],
   "match": "exact_match",
   "proxy": {
    "isProxy": true,
    "proxyType": "ZeppelinOSProxy",
    "implementations": [
     {
      "name": "FiatTokenV2_2",
      "address": "0x2Ce6311ddAE708829bc0784C967b7d77D19FD779"
     }
    ]
   },
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "isProxy": true,
   "verified": true,
   "implementation": "0x2Ce6311ddAE708829bc0784C967b7d77D19FD779"
  },
  "service": "x402_chain_reads_v1.base_contract_abi"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-contract-abi-e6d4712d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.arysphere.com](https://www.zero.xyz/host/api.arysphere.com/llms.txt)
