# Blockscout Optimism Deposits Lookup

> Blockscout Optimism Deposits Lookup is a paid API for AI agents from api.blockscout.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-12).

Fetches a paginated list of Optimism L1-to-L2 deposit transactions for a specified blockchain chain via Blockscout's API

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/optimism/deposits
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockscout-optimism-deposits-lookup-59be3b56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4IDCRrGjgZs0l-eXzKKoz

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 blockscout-optimism-deposits-lookup-59be3b56
```

Example prompt: Can you pull the list of Optimism L1-to-L2 deposits for chain ID 10 and show me the most recent 25 entries, starting from L1 block 19500000?

## When to prefer this

Use this endpoint when you need structured, paginated data about Optimism L1-to-L2 bridge deposit transactions — especially when you want to correlate L1 transaction hashes with their L2 counterparts, audit bridge activity at a specific L1 block, or trace deposit origins. Prefer this over generic block explorers when you need machine-readable JSON output for Optimism deposits specifically.

## Known failure modes

- Invalid chain_id returns 404 or empty result
- Unrecognized transaction_hash returns empty items array
- Malformed query parameters return 400 Bad Request
- Rate limiting or payment failure returns 402 Payment Required
- Network or API downtime returns 5xx errors
- Requesting a very early L1 block with no deposits returns empty items array

## How this service works

Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data

## Output

Returns a paginated array of Optimism deposit records, each containing the L1 block number, L1 timestamp, L1 transaction hash, corresponding L2 transaction hash, the origin address of the L1 transaction, and the L2 gas limit. Also includes next_page_params for cursor-based pagination through additional results.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "properties": {
      "chain_id": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "items_count": {
       "type": "integer"
      },
      "l1_block_number": {
       "type": "integer"
      },
      "transaction_hash": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "l1_block_number": 0,
    "l1_block_timestamp": "string",
    "l1_transaction_hash": "string",
    "l2_transaction_hash": "string",
    "l1_transaction_origin": "string",
    "l2_transaction_gas_limit": "string"
   }
  ],
  "next_page_params": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-optimism-deposits-lookup-59be3b56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockscout.com](https://www.zero.xyz/host/api.blockscout.com/llms.txt)
