# OneSource Ethereum Contract Proxy Lookup

> OneSource Ethereum Contract Proxy Lookup is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Looks up Ethereum contract metadata (proxy status, implementation address) for a given contract address on mainnet or Sepolia testnet

## Facts

- Endpoint: GET https://api.onesource.io/api/chain/proxy/%7Baddress%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-ethereum-contract-proxy-lookup-b5a47e91
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YVOxqp546NrTcwLJ0owIs

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 onesource-ethereum-contract-proxy-lookup-b5a47e91
```

Example prompt: Can you check if the Ethereum contract at 0xdac17f958d2ee523a2206206994597c13d831ec7 is a proxy contract, and if so, what implementation address it points to — use Ethereum mainnet?

## When to prefer this

Use this endpoint when you need to determine if a specific Ethereum contract is a proxy and find its underlying implementation — particularly useful before calling or auditing a contract. Prefer this over generic Etherscan lookups when you want programmatic, pay-per-call access without API keys, or when building autonomous AI agent workflows that need live on-chain contract introspection on mainnet or Sepolia.

## Known failure modes

- Invalid address format (not a valid 0x-prefixed 40-hex-char address) returns an error
- Address is an EOA (externally owned account) rather than a contract — may return is_proxy false with nulls
- Payment not provided or insufficient USDC — returns 402 Payment Required
- Network value not in allowed enum (ethereum, sepolia) causes validation error
- Contract exists but proxy detection is inconclusive — pattern and implementation may be null

## How this service works

Two data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.

## Output

Returns JSON with the queried address, whether it is a proxy contract (is_proxy boolean), the proxy pattern used (if any), and the implementation contract address it delegates to (if applicable).

## Example request

```json
{
 "address": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}
```

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "ethereum",
        "sepolia",
        "robinhood"
       ],
       "type": "string",
       "default": "ethereum"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "admin": {
         "type": "string"
        },
        "address": {
         "type": "string"
        },
        "is_proxy": {
         "type": "boolean"
        },
        "proxy_type": {
         "type": "string"
        },
        "is_contract": {
         "type": "boolean"
        },
        "implementation": {
         "type": "string"
        }
       },
       "description": "Endpoint-specific response payload"
      },
      "meta": {
       "type": "object",
       "required": [
        "endpoint",
        "request_id"
       ],
       "properties": {
        "endpoint": {
         "type": "string"
        },
        "cost_usdc": {
         "type": "string"
        },
        "request_id": {
         "type": "string"
        },
        "payment_chain": {
         "type": "string"
        },
        "payment_token": {
         "type": "string"
        }
       }
      },
      "error": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "code": {
         "type": "integer"
        },
        "message": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "admin": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
   "address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
   "is_proxy": true,
   "proxy_type": "eip1967",
   "is_contract": true,
   "implementation": "0x6b175474e89094c44da98b954eedeac495271d0f"
  },
  "meta": {
   "endpoint": "/api/chain/proxy/{address}",
   "cost_usdc": "0.001",
   "request_id": "00000000abcdef01",
   "payment_chain": "base",
   "payment_token": "USDC"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-ethereum-contract-proxy-lookup-b5a47e91/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
