---
title: "Event Log Decoding"
method: POST
path: "/v1/event-log-decoding"
tags: ["blockchain"]
---

# Event Log Decoding

`POST /v1/event-log-decoding`

## Request

- Base URL: `https://agent.pocket.network`
- URL: `https://agent.pocket.network/v1/event-log-decoding`
- Auth: none required

Decode the event logs of an Ethereum transaction: ERC-20 Transfer events come back typed (from, to, raw value, contract); every other log is returned raw with its topics and data. Values are in base units. POST /v1/log with {tx_hash}. Pay per request in USDC; no account, no API key.

## Request body

- object: The request body for POST /v1/log.
  - `tx_hash` string, required: 0x-prefixed transaction hash.
  - `chain_id` integer: EVM chain id (1 for Ethereum mainnet).

## Response `200`

The upstream response, served after payment settles.

- object: For POST /v1/log, a JSON object with tx_hash, chain_id, an `events` array (typed Transfer or raw) and count. Errors return a JSON object with an `error` field. Properties are pinned from live paid responses; nothing is required, because every route's 2xx response is validated against this one schema.
  - `tx_hash` string
  - `chain_id` number
  - `events` object[]
    - `type` string
    - `from` string
    - `to` string
    - `value_raw` string
    - `contract` string
  - `count` number
  - `source` string
  - `service` string

## Other responses

- `400`: Malformed request.
- `402`: Payment required. The x402 v2 terms are in the PAYMENT-REQUIRED header and, identically, in this body; sign the chosen option and retry with the PAYMENT-SIGNATURE header. The receipt arrives in PAYMENT-RESPONSE.
- `503`: This service is not currently available to serve.

---

[API](https://skmtc.dev/pocket/apis/pocket-agentic-portal.md) · [All operations](https://skmtc.dev/pocket/apis/pocket-agentic-portal/llms.txt) · [OpenAPI document](https://skmtc.dev/pocket/apis/pocket-agentic-portal/revisions/96d2176db014?raw)
