> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asksurf.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Transaction Details



## OpenAPI

````yaml openapi.json GET /gateway/v1/onchain/tx
openapi: 3.1.0
info:
  title: Hermod
  version: 0.0.1
servers:
  - url: https://api.asksurf.ai
security: []
paths:
  /gateway/v1/onchain/tx:
    get:
      tags:
        - Onchain
      summary: Transaction Details by Hash
      description: >-
        Returns transaction details by hash. All numeric fields are hex-encoded
        — use parseInt(hex, 16) to convert.


        **Supported chains:** `ethereum`, `polygon`, `bsc`, `arbitrum`,
        `optimism`, `base`, `avalanche`, `fantom`, `linea`, `cyber`.


        Returns 404 if the transaction is not found.
      operationId: onchain-tx
      parameters:
        - description: Transaction hash (0x-prefixed hex)
          explode: false
          in: query
          name: hash
          required: true
          schema:
            description: Transaction hash (0x-prefixed hex)
            examples:
              - >-
                0x5c504ed432cb51138bcf09aa5e8a410dd4a1e204ef84bfed1be16dfba1b22060
            type: string
        - description: >-
            Chain. Can be `ethereum`, `polygon`, `bsc`, `arbitrum`, `optimism`,
            `base`, `avalanche`, `fantom`, `linea`, or `cyber`.
          explode: false
          in: query
          name: chain
          required: true
          schema:
            description: >-
              Chain. Can be `ethereum`, `polygon`, `bsc`, `arbitrum`,
              `optimism`, `base`, `avalanche`, `fantom`, `linea`, or `cyber`.
            enum:
              - ethereum
              - polygon
              - bsc
              - arbitrum
              - optimism
              - base
              - avalanche
              - fantom
              - linea
              - cyber
            examples:
              - ethereum
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataResponseOnchainTxItem'
          description: OK
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataAPIError'
          description: Error
      security:
        - AccessToken: []
components:
  schemas:
    DataResponseOnchainTxItem:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataResponseOnchainTxItem.json
          format: uri
          readOnly: true
          type: string
        data:
          items:
            $ref: '#/components/schemas/OnchainTxItem'
          type:
            - array
            - 'null'
        meta:
          $ref: '#/components/schemas/OffsetMeta'
      required:
        - data
        - meta
      type: object
    DataAPIError:
      additionalProperties: false
      properties:
        $schema:
          description: A URL to the JSON Schema for this object.
          examples:
            - https://example.com/schemas/DataAPIError.json
          format: uri
          readOnly: true
          type: string
        error:
          $ref: '#/components/schemas/DataAPIErrorDetail'
      required:
        - error
      type: object
    OnchainTxItem:
      additionalProperties: false
      properties:
        accessList:
          description: >-
            List of addresses and storage keys. Empty array for legacy;
            populated for EIP-2930+
          items:
            $ref: '#/components/schemas/AccessListEntry'
          type:
            - array
            - 'null'
        blobVersionedHashes:
          description: Versioned hashes of blob commitments. EIP-4844 only
          items:
            type: string
          type:
            - array
            - 'null'
        blockHash:
          description: Block hash, null if pending
          type:
            - string
            - 'null'
        blockNumber:
          description: Block number (hex), null if pending
          type:
            - string
            - 'null'
        chainId:
          description: Chain ID (hex)
          type: string
        from:
          description: Sender address (0x-prefixed)
          type: string
        gas:
          description: Gas limit (hex)
          type: string
        gasPrice:
          description: >-
            Gas price in wei (hex). Present in all types; for EIP-1559 this is
            the effective gas price
          type: string
        hash:
          description: Transaction hash (0x-prefixed)
          type: string
        input:
          description: Call data (hex)
          type: string
        maxFeePerBlobGas:
          description: Max fee per blob gas in wei (hex). EIP-4844 only
          type: string
        maxFeePerGas:
          description: Max fee per gas in wei (hex). EIP-1559/EIP-4844 only
          type: string
        maxPriorityFeePerGas:
          description: Max priority fee per gas in wei (hex). EIP-1559/EIP-4844 only
          type: string
        nonce:
          description: Sender nonce (hex)
          type: string
        r:
          description: Signature R (hex)
          type: string
        s:
          description: Signature S (hex)
          type: string
        to:
          description: Recipient address, null for contract creation
          type:
            - string
            - 'null'
        transactionIndex:
          description: Index in block (hex), null if pending
          type:
            - string
            - 'null'
        type:
          description: >-
            Transaction type: 0x0=legacy, 0x1=EIP-2930, 0x2=EIP-1559,
            0x3=EIP-4844
          type: string
        v:
          description: >-
            Signature V (hex). Legacy: recovery ID (0x1b/0x1c); EIP-2930+:
            parity (0x0/0x1)
          type: string
        value:
          description: ETH value in wei (hex)
          type: string
        yParity:
          description: Signature Y parity (hex). Present in EIP-2930+ transactions
          type: string
      required:
        - hash
        - nonce
        - blockHash
        - blockNumber
        - transactionIndex
        - from
        - to
        - value
        - gas
        - input
        - type
        - v
        - r
        - s
        - accessList
      type: object
    OffsetMeta:
      additionalProperties: false
      properties:
        cached:
          description: Whether this response was served from cache
          type: boolean
        credits_used:
          description: Credits deducted for this request
          format: int64
          type: integer
        limit:
          description: Maximum number of items returned in this response
          format: int64
          type: integer
        offset:
          description: Number of items skipped (pagination offset)
          format: int64
          type: integer
        total:
          description: >-
            Total number of matching items (before pagination). Omitted when
            total is unknown.
          format: int64
          type: integer
      required:
        - limit
        - offset
        - credits_used
        - cached
      type: object
    DataAPIErrorDetail:
      additionalProperties: false
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    AccessListEntry:
      additionalProperties: false
      properties:
        address:
          description: Account address (0x-prefixed)
          type: string
        storageKeys:
          description: List of storage slot keys (0x-prefixed hex)
          items:
            type: string
          type:
            - array
            - 'null'
      required:
        - address
        - storageKeys
      type: object

````