# 402.com.tr Contract ABI Lookup via Sourcify

> 402.com.tr Contract ABI Lookup via Sourcify is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Checks Sourcify for a Base contract's verification status and returns its ABI as function and event name lists with item count

## Facts

- Endpoint: GET https://402.com.tr/api/x402/contract-abi
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402-com-tr-contract-abi-lookup-via-sourcify-155ca7bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ksdgG89MlVXIQSYDAAN7V

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 402-com-tr-contract-abi-lookup-via-sourcify-155ca7bc
```

Example prompt: Can you check if the Base contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 is verified on Sourcify and show me its function and event names?

## When to prefer this

Use this endpoint when you need a quick, key-less lookup of a Base contract's ABI structure (function and event names) without needing the full raw ABI JSON. Ideal for agents that want to understand a contract's interface, check verification status, or enumerate callable functions before interacting with the contract. Prefer over full ABI fetchers when you only need name lists and counts rather than full parameter signatures.

## Known failure modes

- Contract address not found on Sourcify — returns unverified or no-match status
- Invalid or malformed contract address — returns 400 or error response
- Contract deployed on a chain other than Base — may return no results
- Sourcify upstream unavailable — request may time out or return 503
- Payment not processed — returns 402 Payment Required

## How this service works

Checks Sourcify for a Base contract's verification status and returns its ABI as function/event name lists + item count (full or partial match). No API key required.

## Output

Returns the contract's ABI decomposed into a list of function names and a list of event names, along with a total item count and whether the Sourcify match is full or partial. If the contract is not verified, indicates that status.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Contract address"
      }
     }
    }
   },
   "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/402-com-tr-contract-abi-lookup-via-sourcify-155ca7bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
