# EVM Contract Creation Check

> EVM Contract Creation Check is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Determines whether a given EVM transaction `to` address indicates a contract creation (null/empty `to` field pattern)

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/evm-contract-creation-check?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-contract-creation-check-aaaca10e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Htx4Y1gGY6l1G1OP5l99M

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 evm-contract-creation-check-aaaca10e -d '<json body>'
```

Example prompt: Before I broadcast this Ethereum transaction, can you check if the `to` field being null means it's a contract creation? The `to` value is 0x0000000000000000000000000000000000000000.

## When to prefer this

Use this endpoint when you need a cheap ($0.001), fast, stateless, verifiable check to determine EVM contract creation from a transaction's `to` field — especially in agent pipelines requiring no signup, deterministic pricing, and cryptographic evidence of non-retention. Prefer this over custom logic when you need audit-trail evidence that the check was done without data retention.

## Known failure modes

- Invalid or oversized `to` field (exceeds 8192 chars) may result in a validation error
- Malformed JSON body returns a 400-level error
- Network or upstream availability issues may return 5xx responses
- Payment failure via x402 protocol (insufficient USDC balance) results in 402 Payment Required

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with a `contract_creation` boolean (true if the `to` field indicates a contract deployment), an echo of the input `to` value, a status field ('pass'), the operation name, and evidence metadata including whether input was retained (always false), its SHA-256 hash, and number of external calls made (always 0 — fully in-memory).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "maxLength": 8192,
   "description": "To supplied to EVM Contract Creation Check; used only for this bounded calculation and processed in memory without retention."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "to": null,
   "contract_creation": true
  },
  "schema": "delx/util-evm-contract-creation-check/v1",
  "status": "pass",
  "evidence": {
   "retained": false,
   "input_sha256": "a989634982a168f73ab3e76e8f148fee85c4dafaa08aaf66b14ecbe8df0a682c",
   "external_calls": 0
  },
  "operation": "evm_preflight:evm_contract_creation_check"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-contract-creation-check-aaaca10e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
