# DopamineDesk EVM Bytecode Fetcher

> DopamineDesk EVM Bytecode Fetcher is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.0015/call, status unknown (last checked 2026-09-13).

Fetches the deployed bytecode, bytecode hash, bytecode size, and account type for any EVM wallet or contract address on Base, Ethereum, or Arbitrum.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/evm_code
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-evm-bytecode-fetcher-e98ba7f1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wAIps8ttDeS_apRyzcPu0

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 dopaminedesk-evm-bytecode-fetcher-e98ba7f1
```

Example prompt: Can you pull the deployed bytecode and account type for the contract at 0xAbCd...1234 on Base at the latest block? I want to know if it's really a contract and get its bytecode hash.

## When to prefer this

Choose this endpoint when you need on-chain bytecode data for any EVM address across Base, Ethereum, or Arbitrum with pay-per-use micropayment pricing via x402 USDC — ideal for agents doing smart contract security audits, due diligence checks, or automated contract inspection pipelines where you want to verify deployment status or compare bytecode hashes without running your own RPC node.

## Known failure modes

- Invalid or malformed EVM address returns an error response
- Unsupported chain name causes a bad request
- Block height beyond the chain tip or pre-genesis returns an error
- Empty bytecode returned for EOA (non-contract) addresses, which is expected behavior
- Network timeouts or RPC node unavailability may cause failures
- Payment (x402 USDC) failure blocks the request entirely

## How this service works

Read deployed bytecode for an address and return contract-versus-EOA classification, byte size, and bytecode hash.

## Output

Returns a JSON object with: success (boolean), network (chain name), account_type ('contract' or EOA indicator), bytecode (hex string of deployed code), bytecode_hash (keccak256 hash of the bytecode), and bytecode_size (integer byte count).

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "block": {
       "type": "string",
       "description": "Block tag or height; defaults to latest."
      },
      "chain": {
       "type": "string",
       "description": "base, ethereum, or arbitrum; defaults to base."
      },
      "address": {
       "type": "string",
       "description": "EVM wallet or contract address."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "network",
      "account_type",
      "bytecode_size",
      "bytecode_hash",
      "bytecode"
     ],
     "properties": {
      "network": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "bytecode": {
       "type": "string"
      },
      "account_type": {
       "type": "string"
      },
      "bytecode_hash": {
       "type": "string"
      },
      "bytecode_size": {
       "type": "integer"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base",
  "success": true,
  "bytecode": "0x...",
  "account_type": "contract",
  "bytecode_hash": "0x...",
  "bytecode_size": 1000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-evm-bytecode-fetcher-e98ba7f1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
