# DDG Base Contract Bytecode Lookup

> DDG Base Contract Bytecode Lookup is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Retrieves the deployed bytecode of a smart contract on the Base blockchain given a contract address.

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/base/contract-code?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ddg-base-contract-bytecode-lookup-42ba1884
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I-doWde4jSqKKctL076vy

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 ddg-base-contract-bytecode-lookup-42ba1884 -d '<json body>'
```

Example prompt: Can you pull the deployed bytecode for the smart contract at 0x1234abcd...5678 on Base so I can inspect what code is running there?

## When to prefer this

Choose this endpoint when you specifically need to retrieve smart contract bytecode on the Base (Coinbase L2) blockchain. It is purpose-built for Base and agent-payable at $0.01 USDC per call, making it suitable for lightweight, automated on-chain code inspection tasks without requiring your own RPC infrastructure. Prefer it over general-purpose RPC providers when you need a simple, pay-per-use lookup with no node setup.

## Known failure modes

- Invalid or malformed contract address returns an error response
- Address with no deployed code (EOA) may return empty bytecode
- RPC connectivity issues to Base network may cause timeouts
- Malformed request body missing required fields returns a schema validation error
- Non-Base chain addresses may return incorrect or no results

## How this service works

Machine-payable DDG services for AI agents. Current public live payment rails are x402 multi-chain USDC and direct-crypto auto/manual for public receiving-address families. MPP/Stripe/Tempo is installed but pending live provider env plus penny-settlement proof before any MPP-live advertisement. DDG sells bounded artifacts/results, not raw provider account access.

## Output

Returns a JSON object with an 'ok' boolean and the raw bytecode of the smart contract deployed at the specified address on the Base blockchain. If no code is present (EOA address), the bytecode field will reflect an empty result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ddg-base-contract-bytecode-lookup-42ba1884/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.daedalusdevelopmentgroup.com](https://www.zero.xyz/host/agents.daedalusdevelopmentgroup.com/llms.txt)
