deBridge Same Chain Swap API

The SameChainSwap API from deBridge — 2 operation(s) for samechainswap.

Operations 2

GET /api/SameChainSwap/{swapId} Retrieves the SameChainSwapDTO object for a given swap ID #
GET /api/SameChainSwap/{chainId}/tx/{transactionHash} Retrieves the SameChainSwapDTO object for a given transaction hash #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/debridge-com:debridge-com-samechainswap-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

debridge-com-samechainswap-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DLN stats Same Chain Swap API
  description: '# Introduction

    This API is part of deBridge protocol infrastructure.


    Protocol documentation is available here.


    Terms and Condition | Privacy Policy


    # Swagger

    Swagger document can be found here


    Redoc document can be found here'
  version: v1
servers:
- url: https://dln-api.debridge.finance
tags:
- name: SameChainSwap
paths:
  /api/SameChainSwap/{swapId}:
    get:
      tags:
      - SameChainSwap
      summary: Retrieves the SameChainSwapDTO object for a given swap ID
      operationId: SameChainSwap_GetSameChainSwap
      parameters:
      - name: swapId
        in: path
        description: The unique identifier of the swap.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SameChainSwapDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputDataResponse'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
  /api/SameChainSwap/{chainId}/tx/{transactionHash}:
    get:
      tags:
      - SameChainSwap
      summary: Retrieves the SameChainSwapDTO object for a given transaction hash
      operationId: SameChainSwap_GetSwapByTx
      parameters:
      - name: chainId
        in: path
        description: Chain or IAAS subscription id
        required: true
        schema:
          type: integer
          format: int32
      - name: transactionHash
        in: path
        description: The hash of the transaction the swap was executed in.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SameChainSwapDTO'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputDataResponse'
        '422':
          description: Unprocessable Content
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        message:
          type:
          - string
          - 'null'
          description: Error message
        errorCode:
          type: integer
          description: Error code, if differs from response code (if !=422) indicates unique id of the error that can be used for error's handling automation on client side
          format: int32
      additionalProperties: false
      description: Information about error, occurred in the application
    MetadataDTO:
      type: object
      properties:
        decimals:
          type: integer
          description: Decimals of the token
          format: int32
        name:
          type:
          - string
          - 'null'
          description: Name of the token
        symbol:
          type:
          - string
          - 'null'
          description: Symbol of the token
        logoURI:
          type:
          - string
          - 'null'
          description: URI of the token's logo
      additionalProperties: false
      description: Token metadata DTO
    StringPropertyDTO:
      type: object
      properties:
        bytesValue:
          type:
          - string
          - 'null'
          description: Binary representation of the property value
          format: byte
        bytesArrayValue:
          type:
          - string
          - 'null'
          description: Bytes array representation of the value
          readOnly: true
        stringValue:
          type:
          - string
          - 'null'
          description: String representation of the property value
          readOnly: true
      additionalProperties: false
    InternalServerErrorResponse:
      type: object
      properties:
        message:
          type:
          - string
          - 'null'
          description: Error message
        errorCode:
          type: integer
          description: For this type of error it's always 500
          format: int32
      additionalProperties: false
      description: Information about an internal server error
    IntPropertyDTO:
      type: object
      properties:
        bytesValue:
          type:
          - string
          - 'null'
          description: Binary representation of the property value
          format: byte
        bytesArrayValue:
          type:
          - string
          - 'null'
          description: Bytes array representation of the value
          readOnly: true
        bigIntegerValue:
          type:
          - number
          - 'null'
          description: Integer representation of the property value
          format: int64
          readOnly: true
        stringValue:
          type:
          - string
          - 'null'
          description: String representation of the property value
          readOnly: true
      additionalProperties: false
    SameChainSwapAffiliateFeeDTO:
      type: object
      properties:
        affiliateFee:
          $ref: '#/components/schemas/TokenAmountDTO'
        beneficiarySrc:
          $ref: '#/components/schemas/AddressPropertyDTO'
      additionalProperties: false
      description: Represents details regarding the affiliate fee for same chain swap.
    TransactionHashPropertyDto:
      type: object
      allOf:
      - $ref: '#/components/schemas/StringPropertyDTO'
      properties:
        stringValue:
          type:
          - string
          - 'null'
          description: String representation of the transaction hash value
          readOnly: true
      additionalProperties: false
      description: Transaction Hash property
    InvalidInputDataResponse:
      type: object
      properties:
        message:
          type:
          - string
          - 'null'
          description: Error message
        errorCode:
          type: integer
          description: For this type of error it's always 400
          format: int32
      additionalProperties: false
      description: Information about bad input params
    SameChainSwapDTO:
      type: object
      properties:
        swapId:
          oneOf:
          - $ref: '#/components/schemas/StringPropertyDTO'
          - $ref: '#/components/schemas/TransactionHashPropertyDto'
          description: Id of the swap
        chainId:
          $ref: '#/components/schemas/IntPropertyDTO'
        sender:
          $ref: '#/components/schemas/AddressPropertyDTO'
        recipient:
          $ref: '#/components/schemas/AddressPropertyDTO'
        tokenIn:
          $ref: '#/components/schemas/TokenAmountDTO'
        tokenOut:
          $ref: '#/components/schemas/TokenAmountDTO'
        transactionHash:
          $ref: '#/components/schemas/TransactionHashPropertyDto'
        blockTimeStamp:
          type: integer
          description: Timestamp of the block in which the event was recorded, represented as a Unix time in seconds.
          format: int64
        affiliateFee:
          $ref: '#/components/schemas/SameChainSwapAffiliateFeeDTO'
        swapFee:
          $ref: '#/components/schemas/TokenAmountDTO'
        referralCode:
          type:
          - integer
          - 'null'
          description: Referral program code
          format: int32
        swapRouterInfo:
          $ref: '#/components/schemas/RouterInfoDTO'
      additionalProperties: false
      description: Represents a Data Transfer Object (DTO) used to encapsulate the details of a swap operation on one blockchain (NOT cross-chain).
    AddressPropertyDTO:
      type: object
      properties:
        Base64Value:
          type:
          - string
          - 'null'
          description: Binary representation of the property value
          format: byte
        bytesArrayValue:
          type:
          - string
          - 'null'
          description: Bytes array representation of the value
          readOnly: true
        stringValue:
          type:
          - string
          - 'null'
          description: String representation of the property value
          readOnly: true
      additionalProperties: false
    RouterInfoDTO:
      type: object
      properties:
        address:
          $ref: '#/components/schemas/AddressPropertyDTO'
        name:
          type:
          - string
          - 'null'
          description: Router name
        logoUri:
          type:
          - string
          - 'null'
          description: Token logo Uri
      additionalProperties: false
      description: Information about the router used for executing the token swap
    TokenAmountDTO:
      type: object
      properties:
        tokenAddress:
          $ref: '#/components/schemas/AddressPropertyDTO'
        amount:
          $ref: '#/components/schemas/IntPropertyDTO'
        metadata:
          $ref: '#/components/schemas/MetadataDTO'
      additionalProperties: false
      description: Info about a token