GET
/
api
/
SameChainSwap
/
{swapId}
Retrieves the SameChainSwapDTO object for a given swap ID.
curl --request GET \
  --url https://dln-api.debridge.finance/api/SameChainSwap/{swapId}
{
  "swapId": {
    "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
    "bytesArrayValue": "<string>",
    "stringValue": "<string>"
  },
  "chainId": {
    "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
    "bytesArrayValue": "<string>",
    "bigIntegerValue": 123,
    "stringValue": "<string>"
  },
  "sender": {
    "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
    "bytesArrayValue": "<string>",
    "stringValue": "<string>"
  },
  "recipient": {
    "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
    "bytesArrayValue": "<string>",
    "stringValue": "<string>"
  },
  "tokenIn": {
    "tokenAddress": {
      "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "stringValue": "<string>"
    },
    "amount": {
      "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "bigIntegerValue": 123,
      "stringValue": "<string>"
    },
    "metadata": {
      "decimals": 123,
      "name": "<string>",
      "symbol": "<string>",
      "logoURI": "<string>"
    }
  },
  "tokenOut": {
    "tokenAddress": {
      "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "stringValue": "<string>"
    },
    "amount": {
      "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "bigIntegerValue": 123,
      "stringValue": "<string>"
    },
    "metadata": {
      "decimals": 123,
      "name": "<string>",
      "symbol": "<string>",
      "logoURI": "<string>"
    }
  },
  "transactionHash": {
    "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
    "bytesArrayValue": "<string>",
    "stringValue": "<string>"
  },
  "blockTimeStamp": 123,
  "affiliateFee": {
    "affiliateFee": {
      "tokenAddress": {
        "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
        "bytesArrayValue": "<string>",
        "stringValue": "<string>"
      },
      "amount": {
        "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
        "bytesArrayValue": "<string>",
        "bigIntegerValue": 123,
        "stringValue": "<string>"
      },
      "metadata": {
        "decimals": 123,
        "name": "<string>",
        "symbol": "<string>",
        "logoURI": "<string>"
      }
    },
    "beneficiarySrc": {
      "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "stringValue": "<string>"
    }
  },
  "swapFee": {
    "tokenAddress": {
      "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "stringValue": "<string>"
    },
    "amount": {
      "bytesValue": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "bigIntegerValue": 123,
      "stringValue": "<string>"
    },
    "metadata": {
      "decimals": 123,
      "name": "<string>",
      "symbol": "<string>",
      "logoURI": "<string>"
    }
  },
  "referralCode": 123,
  "swapRouterInfo": {
    "address": {
      "Base64Value": "aSDinaTvuI8gbWludGxpZnk=",
      "bytesArrayValue": "<string>",
      "stringValue": "<string>"
    },
    "name": "<string>",
    "logoUri": "<string>"
  }
}

Path Parameters

swapId
string
required

The unique identifier of the swap.

Response

OK

Represents a Data Transfer Object (DTO) used to encapsulate the details of a swap operation on one blockchain (NOT cross-chain).

swapId
object

Id of the swap

chainId
object
sender
object
recipient
object
tokenIn
object

Info about a token

tokenOut
object

Info about a token

transactionHash
object

Transaction Hash property

blockTimeStamp
integer

Timestamp of the block in which the event was recorded, represented as a Unix time in seconds.

affiliateFee
object

Represents details regarding the affiliate fee for same chain swap.

swapFee
object

Info about a token

referralCode
integer

Referral program code

swapRouterInfo
object

Information about the router used for executing the token swap