{
  "id": "surf.onchain.tx",
  "object": "tool",
  "name": "Transaction Details by Hash",
  "summary": "Look up one transaction by hash.",
  "description": "Look up one transaction by hash. Example: chain=ethereum with a 0x-prefixed 64-character hash. All numeric fields are hex-encoded. Convert them with parseInt(hex, 16). Supported chains: ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, cyber.\n\nRaw surf#onchain/tx endpoint: input is { body, queryParams, pathParams } as the provider documents them (https://docs.asksurf.ai/data-api/onchain/tx).",
  "category": "lookup",
  "hosted_by": "Surf",
  "runtime": "partner",
  "side_effects": false,
  "status": "live",
  "credits": 0,
  "price": null,
  "providers": [
    {
      "id": "surf",
      "name": "Surf",
      "price": null,
      "own_key_only": true
    }
  ],
  "mcp_name": "surf_onchain_tx",
  "input_schema": {
    "type": "object",
    "properties": {
      "queryParams": {
        "type": "object",
        "properties": {
          "hash": {
            "type": "string",
            "minLength": 1,
            "description": "Transaction hash (0x-prefixed hex). Example: 0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060."
          },
          "chain": {
            "type": "string",
            "enum": [
              "ethereum",
              "polygon",
              "bsc",
              "arbitrum",
              "optimism",
              "base",
              "avalanche",
              "fantom",
              "linea",
              "cyber"
            ],
            "description": "Chain. Can be ethereum, polygon, bsc, arbitrum, optimism, base, avalanche, fantom, linea, or cyber. Example: ethereum."
          },
          "include": {
            "type": "string",
            "minLength": 1,
            "description": "Comma-separated enrichments to attach. Currently valid: labels — adds from_label and to_label fields with entity information for the from/to addresses. Example: labels."
          }
        },
        "required": [
          "hash",
          "chain"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "queryParams"
    ],
    "additionalProperties": false
  },
  "kind": "endpoint"
}