Active-Routes/Users

Returns active route of an address

v2/route/active-routes

How this endpoint is used:

  • This endpoint returns all the routes a user has bridged from

  • It can be used to show the user their transaction history

API-KEY needs to be passed in the headers while making the GET request

Returns transaction history of user

GET https://api.socket.tech/v2/route/active-routes/users

Path Parameters

{
  "success": true,
  "result": {
    "activeRoutes":[
   {
    "activeRouteId": 0,
    "userAddress": "string",
    "totalUserTx": 1,
    "userTxs": [
      {},
      {},
      {}
    ],
    "fromChainId": 0,
    "toChainId": 0,
    "fromAssetAddress": "string",
    "toAssetAddress": "string",
    "fromAmount": 0,
    "toAmount": "string",
    "routeStatus": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "currentUserTxIndex": 0,
    "fromAsset": {
      "name": "string",
      "address": "string",
      "icon": "string",
      "decimals": 6,
      "symbol": "string",
      "chainId": "string"
    },
    "toAsset": {
      "name": "string",
      "address": "string",
      "icon": "string",
      "decimals": 6,
      "symbol": "string",
      "chainId": "string"
    }
    }
       ],
    "pagination": {
      "offset": 0,
      "limit": 1,
      "totalRecords": 10
    }
  }
}

Description of response parameters :

TEST QUERY : https://api.socket.tech/v2/swagger/#/Routes/ActiveRoutesController_getActiveRoutesForUser

Last updated