# Blockscout Transaction Logs by Chain

> Blockscout Transaction Logs by Chain 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 paginated event logs emitted by a specific transaction on a given blockchain network via Blockscout's multichain explorer API

## Facts

- Endpoint: GET https://api.blockscout.com/%7Bchain_id%7D/api/v2/transactions/%7Btransaction_hash_param%7D/logs
- 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-transaction-logs-by-chain-ed39d830
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I9vJqwyxHBmhclOFXx4GF

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-transaction-logs-by-chain-ed39d830
```

Example prompt: Can you pull all the event logs for transaction 0xabc123...def on Ethereum (chain ID 1) from Blockscout so I can see which smart contract events were emitted?

## When to prefer this

Choose this endpoint when you need event log data for a specific transaction across any EVM-compatible blockchain supported by Blockscout, especially when you need decoded log data, contract metadata (name, verification, tags), or ENS resolution alongside raw topics. Prefer this over generic RPC eth_getTransactionReceipt calls when human-readable decoded event names and contract reputation signals are needed.

## Known failure modes

- Invalid or unknown transaction hash returns empty items array or 404
- Unsupported chain_id results in routing error or empty response
- Malformed transaction hash format causes a 400 validation error
- Pagination params (index, block_number, items_count) out of range may return empty next page
- Network congestion or node sync lag may return stale or incomplete log data

## 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

A paginated list of log objects, each containing raw hex data, indexed topics array, the emitting contract address (with name, verification status, proxy type, tags, and ENS name), a decoded log payload, block hash, block number, block timestamp, and transaction hash. Also includes next_page_params for cursor-based pagination through large log sets.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "items": [
   {
    "data": "string",
    "index": 0,
    "topics": [
     "string"
    ],
    "address": {
     "hash": "string",
     "name": "string",
     "is_scam": true,
     "metadata": {},
     "proxy_type": "string",
     "reputation": "string",
     "is_contract": true,
     "is_verified": true,
     "public_tags": [
      {
       "label": "string",
       "address_hash": "string",
       "display_name": "string"
      }
     ],
     "private_tags": [
      {
       "label": "string",
       "address_hash": "string",
       "display_name": "string"
      }
     ],
     "ens_domain_name": "string",
     "implementations": [
      {
       "name": "string",
       "address_hash": "string"
      }
     ],
     "watchlist_names": [
      {
       "label": "string",
       "display_name": "string"
      }
     ]
    },
    "decoded": {},
    "block_hash": "string",
    "block_number": 0,
    "smart_contract": {},
    "block_timestamp": "string",
    "transaction_hash": "string"
   }
  ],
  "next_page_params": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockscout-transaction-logs-by-chain-ed39d830/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)
