# DopamineDesk EVM Logs API

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

Fetches raw on-chain event logs for a given contract address on Base, Ethereum, or Arbitrum within a specified block range.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/evm_logs
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-evm-logs-api-955552e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NXtJy1sQUPNl-KTuskKJn

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-logs-api-955552e8
```

Example prompt: Pull up to 200 raw event logs for the contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum, starting from block 19000000 to block 19002000, filtered by the Transfer event topic 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

## When to prefer this

Choose this endpoint when you need raw on-chain event logs for a specific contract address on Base, Ethereum, or Arbitrum, especially when you want to filter by event signature (topic0) and control the block range precisely. It is pay-per-use at $0.003 USDC via x402, making it suitable for sporadic or agent-driven queries without a subscription. Prefer alternatives (e.g. a full indexer or TheGraph) if you need decoded, human-readable events, historical data beyond 2,000-block windows at scale, or multi-contract queries in one call.

## Known failure modes

- Missing required contract address parameter returns validation error
- Block range exceeds 2,000 blocks returns an error or truncated result
- Invalid chain name (not base/ethereum/arbitrum) returns an error
- Contract address not found on specified chain returns empty logs array
- topic0 hash format invalid returns a parsing error
- Payment not settled via x402 returns HTTP 402

## How this service works

Read contract event logs across a strictly bounded block range with an optional topic0 filter and capped response count.

## Output

Returns a JSON object containing an array of raw EVM event log entries, each with a transaction hash, array of topics, and hex-encoded data field, plus metadata: the network name, total log count returned, a success flag, and a truncated flag indicating whether the result set was capped at the requested limit.

## 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": {
      "chain": {
       "type": "string",
       "description": "base, ethereum, or arbitrum; defaults to base."
      },
      "limit": {
       "type": "integer",
       "description": "Maximum logs returned from 1 to 500; defaults to 100. Block ranges cannot exceed 2,000 blocks."
      },
      "topic0": {
       "type": "string",
       "description": "Optional 32-byte event-signature topic hash."
      },
      "address": {
       "type": "string",
       "description": "Contract address whose logs should be read."
      },
      "to_block": {
       "type": "string",
       "description": "Explicit height or latest; defaults to from_block."
      },
      "from_block": {
       "type": "string",
       "description": "Explicit height or latest; defaults to latest."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "network",
      "count",
      "truncated",
      "logs"
     ],
     "properties": {
      "logs": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "transaction_hash",
         "topics",
         "data"
        ],
        "properties": {
         "data": {
          "type": "string"
         },
         "topics": {
          "type": "array",
          "items": {}
         },
         "transaction_hash": {
          "type": "string"
         }
        },
        "additionalProperties": true
       }
      },
      "count": {
       "type": "integer"
      },
      "network": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "truncated": {
       "type": "boolean"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "logs": [
   {
    "data": "0x...",
    "topics": [
     "0x..."
    ],
    "transaction_hash": "0x..."
   }
  ],
  "count": 1,
  "network": "base",
  "success": true,
  "truncated": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-evm-logs-api-955552e8/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)
