# Blockscout Optimism Deposits Endpoint

> Blockscout Optimism Deposits Endpoint 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).

Retrieves a list of Optimism bridge deposits (L1→L2) for a specified chain, including L1 block numbers, timestamps, and transaction hashes on both layers

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/main-page/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-endpoint-00e58fa3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1F2yncMKsLVHfsGx16_79

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-endpoint-00e58fa3
```

Example prompt: Pull the latest Optimism bridge deposits from Blockscout for chain ID 10 — I need the L1 block numbers, timestamps, and both the L1 and L2 transaction hashes.

## When to prefer this

Use this endpoint when you specifically need Optimism bridge deposit data (L1→L2) with both layer transaction hashes and block-level timestamps, and you want Blockscout's multichain explorer coverage rather than querying an Optimism node directly. Ideal for monitoring, auditing, or reconciling cross-layer bridge activity.

## Known failure modes

- Invalid or unsupported chain_id returns an error or empty response
- Network unavailability from Blockscout API results in timeout
- Chain not indexed by Blockscout may return 404 or empty array
- Malformed chain_id path parameter causes a 400 bad request

## 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 an array of Optimism deposit records, each containing the L1 block number, L1 block timestamp, L1 transaction hash, and the corresponding L2 transaction hash for cross-layer bridge deposits.

## 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"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-optimism-deposits-endpoint-00e58fa3/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)
