# Financial Data x402 – Smart Contract Source Lookup

> Financial Data x402 – Smart Contract Source Lookup is a paid API for AI agents from x402financialdata.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-08).

Retrieves verified ABI, source code, and metadata for a smart contract at a given blockchain address via pay-per-call x402 micropayment.

## Facts

- Endpoint: GET https://x402financialdata.com/contract-source/%7Baddress%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/financial-data-x402-smart-contract-source-lookup-e3b2edc6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s_UJUsKgSZ0-h0rVda_Cy

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 financial-data-x402-smart-contract-source-lookup-e3b2edc6
```

Example prompt: Can you pull the verified source code and ABI for the smart contract at 0xbb9bc244d798123fde783fcc1c72d3bb8c189413 on Ethereum?

## When to prefer this

Choose this endpoint when you need on-chain smart contract source code, ABI, and deployment metadata without setting up API keys or subscriptions — especially in agent workflows that pay micropayments per call via the x402 protocol using USDC on Base or Solana. Prefer it over Etherscan API or similar when you want a pay-as-you-go, keyless approach suitable for autonomous agents.

## Known failure modes

- Invalid or malformed contract address returns an error or empty result
- Unverified contracts may return partial data or no source code
- Contract addresses on unsupported chains return no data
- Payment failure via x402 protocol results in HTTP 402 and no data returned
- Network timeouts on slow RPC nodes may delay response

## How this service works

Pay-per-call stock, macro, on-chain, and crypto data over the x402 protocol. USDC on Base or Solana, no API keys, no subscriptions.

## Output

Returns a JSON object containing the contract's ABI (array of function/event descriptors), raw Solidity source code, contract name, compiler version, chain identifier, whether the contract is verified, whether optimization was used during compilation, whether the contract is a proxy, and the implementation address if applicable.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "abi": [
   {
    "name": "someFunction",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "constant": false
   }
  ],
  "chain": "eth",
  "address": "0xbb9bc244d798123fde783fcc1c72d3bb8c189413",
  "is_proxy": false,
  "verified": true,
  "source_code": "pragma solidity ^0.4.26;\n\ncontract Test12345 { ... }",
  "contract_name": "Test12345",
  "compiler_version": "v0.4.26+commit.4563c3fc",
  "optimization_used": true,
  "implementation_address": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/financial-data-x402-smart-contract-source-lookup-e3b2edc6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402financialdata.com](https://www.zero.xyz/host/x402financialdata.com/llms.txt)
