{
  "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/log with {tx_hash}. Pay per request in USDC; no account, no API key.",
  "category": "blockchain",
  "resourceUrl": "https://test.agent.pocket.network/v1/event-log-decoding",
  "priceUsd": "0.005000",
  "priceVersion": 1,
  "rails": [
    {
      "id": "base",
      "network": "eip155:84532",
      "chainId": 84532,
      "tokenAddress": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
      "tokenDecimals": 6,
      "payToAddress": "0xF732ea490c5766071785a2310523f7fA2CEbB829"
    }
  ],
  "paymentNetworks": [
    "eip155:84532"
  ],
  "paymentProtocols": [
    "x402"
  ],
  "protocols": [
    "rest"
  ],
  "inputSchema": {
    "type": "object",
    "description": "The request body for POST /v1/log.",
    "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/log, 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/log": "read"
  },
  "firstParty": true,
  "networks": [
    "eip155:84532"
  ],
  "serving": true,
  "page": "https://test.agent.pocket.network/services/event-log-decoding",
  "descriptor": "https://test.agent.pocket.network/services/event-log-decoding/descriptor.json"
}