# Delx Base Contract Code

> Delx Base Contract Code is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Checks whether a Base network address is a smart contract and returns its bytecode size via eth_getCode.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/base-code
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-base-contract-code-423f2a2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tubHZetuJAfOPyyapyaAO

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 delx-base-contract-code-423f2a2f -d '<json body>'
```

Example prompt: Can you check if the Base address 0x1234abcd... is a smart contract and tell me the bytecode size?

## When to prefer this

Use this endpoint when you need a fast, paid, agent-ready single-call lookup to determine if a Base L2 address is a smart contract, especially when you want to avoid managing your own RPC node or handling eth_getCode directly. Prefer this over raw RPC calls when building autonomous agents that need on-chain address classification with minimal infrastructure setup.

## Known failure modes

- Invalid or malformed Base address returns an error
- Address exists but has no code (EOA) — returns zero bytecode size
- Network or RPC connectivity issues returning a timeout
- Payment failure if USDC balance is insufficient for the $0.001 fee
- Non-Base chain addresses may return incorrect or empty results

## How this service works

Check if a Base address is a contract and return bytecode size for $0.001 USDC via eth_getCode. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

## Output

Returns whether the given Base address has deployed contract bytecode, the size of that bytecode in bytes, and the raw bytecode or a summary, effectively confirming EOA vs. contract status via eth_getCode.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "tool_name": "get_base_code"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-base-contract-code-423f2a2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
