---
title: "Retrieves the SameChainSwapDTO object for a given transaction hash."
method: GET
path: "/api/SameChainSwap/{chainId}/tx/{transactionHash}"
tags: ["SameChainSwap"]
---

# Retrieves the SameChainSwapDTO object for a given transaction hash.

`GET /api/SameChainSwap/{chainId}/tx/{transactionHash}`

## Path parameters

- `chainId` integer, required
- `transactionHash` string, required

## Response `200`

OK

- SameChainSwapDTO — Represents a Data Transfer Object (DTO) used to encapsulate the details of a swap operation on one blockchain (NOT cross-chain).
  - `swapId` union — Id of the swap
    - StringPropertyDTO
      - `bytesValue` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
    - TransactionHashPropertyDto
      - `bytesValue` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
  - `chainId` IntPropertyDTO
    - `bytesValue` string, byte, nullable — Binary representation of the property value
    - `bytesArrayValue` string, nullable — Bytes array representation of the value
    - `bigIntegerValue` number, nullable — Integer representation of the property value
    - `stringValue` string, nullable — String representation of the property value
  - `sender` AddressPropertyDTO
    - `Base64Value` string, byte, nullable — Binary representation of the property value
    - `bytesArrayValue` string, nullable — Bytes array representation of the value
    - `stringValue` string, nullable — String representation of the property value
  - `recipient` AddressPropertyDTO
    - `Base64Value` string, byte, nullable — Binary representation of the property value
    - `bytesArrayValue` string, nullable — Bytes array representation of the value
    - `stringValue` string, nullable — String representation of the property value
  - `tokenIn` TokenAmountDTO — Info about a token
    - `tokenAddress` AddressPropertyDTO
      - `Base64Value` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
    - `amount` IntPropertyDTO
      - `bytesValue` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `bigIntegerValue` number, nullable — Integer representation of the property value
      - `stringValue` string, nullable — String representation of the property value
    - `metadata` MetadataDTO — Token metadata DTO
      - `decimals` integer — Decimals of the token
      - `name` string, nullable — Name of the token
      - `symbol` string, nullable — Symbol of the token
      - `logoURI` string, nullable — URI of the token's logo
  - `tokenOut` TokenAmountDTO — Info about a token
    - `tokenAddress` AddressPropertyDTO
      - `Base64Value` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
    - `amount` IntPropertyDTO
      - `bytesValue` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `bigIntegerValue` number, nullable — Integer representation of the property value
      - `stringValue` string, nullable — String representation of the property value
    - `metadata` MetadataDTO — Token metadata DTO
      - `decimals` integer — Decimals of the token
      - `name` string, nullable — Name of the token
      - `symbol` string, nullable — Symbol of the token
      - `logoURI` string, nullable — URI of the token's logo
  - `transactionHash` TransactionHashPropertyDto
    - `bytesValue` string, byte, nullable — Binary representation of the property value
    - `bytesArrayValue` string, nullable — Bytes array representation of the value
    - `stringValue` string, nullable — String representation of the property value
  - `blockTimeStamp` integer — Timestamp of the block in which the event was recorded, represented as a Unix time in seconds.
  - `affiliateFee` SameChainSwapAffiliateFeeDTO — Represents details regarding the affiliate fee for same chain swap.
    - `affiliateFee` TokenAmountDTO — Info about a token
      - `tokenAddress` AddressPropertyDTO
        - `Base64Value` string, byte, nullable — Binary representation of the property value
        - `bytesArrayValue` string, nullable — Bytes array representation of the value
        - `stringValue` string, nullable — String representation of the property value
      - `amount` IntPropertyDTO
        - `bytesValue` string, byte, nullable — Binary representation of the property value
        - `bytesArrayValue` string, nullable — Bytes array representation of the value
        - `bigIntegerValue` number, nullable — Integer representation of the property value
        - `stringValue` string, nullable — String representation of the property value
      - `metadata` MetadataDTO — Token metadata DTO
        - `decimals` integer — Decimals of the token
        - `name` string, nullable — Name of the token
        - `symbol` string, nullable — Symbol of the token
        - `logoURI` string, nullable — URI of the token's logo
    - `beneficiarySrc` AddressPropertyDTO
      - `Base64Value` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
  - `swapFee` TokenAmountDTO — Info about a token
    - `tokenAddress` AddressPropertyDTO
      - `Base64Value` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
    - `amount` IntPropertyDTO
      - `bytesValue` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `bigIntegerValue` number, nullable — Integer representation of the property value
      - `stringValue` string, nullable — String representation of the property value
    - `metadata` MetadataDTO — Token metadata DTO
      - `decimals` integer — Decimals of the token
      - `name` string, nullable — Name of the token
      - `symbol` string, nullable — Symbol of the token
      - `logoURI` string, nullable — URI of the token's logo
  - `referralCode` integer — Referral program code
  - `swapRouterInfo` RouterInfoDTO — Information about the router used for executing the token swap
    - `address` AddressPropertyDTO
      - `Base64Value` string, byte, nullable — Binary representation of the property value
      - `bytesArrayValue` string, nullable — Bytes array representation of the value
      - `stringValue` string, nullable — String representation of the property value
    - `name` string, nullable — Router name
    - `logoUri` string, nullable — Token logo Uri

## Other responses

- `400` — Bad Request
- `422` — Unprocessable Content
- `500` — Internal Server Error

---

[API](https://skmtc.net/debridge/apis/debridge-liquidity-network-dln-api.md) · [All operations](https://skmtc.net/debridge/apis/debridge-liquidity-network-dln-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/debridge/debridge-liquidity-network-dln-api/revisions/ec461847e46f/schema)
