{
  "serviceId": "event-log-decoding",
  "displayName": "Event Log Decoding",
  "description": "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/event with {tx_hash}. Pay per request in USDC; no account, no API key.",
  "category": "blockchain",
  "resourceUrl": "https://agent.pocket.network/v1/event-log-decoding",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:8453",
      "chainId": 8453,
      "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The request body for POST /v1/event.",
    "properties": {
      "tx_hash": {
        "type": "string",
        "description": "0x-prefixed transaction hash."
      },
      "chain_id": {
        "type": "integer",
        "description": "EVM chain id (1 for Ethereum mainnet)."
      }
    },
    "required": [
      "tx_hash"
    ]
  },
  "outputSchema": {
    "type": "object",
    "description": "For POST /v1/event, a JSON object with tx_hash, chain_id, an `events` array (typed Transfer or raw) and count. The exact shape is the service's own and is not pinned here; errors return a JSON object with an `error` field."
  },
  "methods": {
    "GET /v1/health": "read",
    "GET /v1/version": "read",
    "POST /v1/event": "read"
  },
  "firstParty": true,
  "networks": [
    "eip155:8453"
  ],
  "serving": true,
  "page": "https://agent.pocket.network/services/event-log-decoding",
  "descriptor": "https://agent.pocket.network/services/event-log-decoding/descriptor.json"
}