Search…
Active-Routes
Returns route details

v2/route/active-routes

How this endpoint is to be used :
  • This endpoint returns details about a given route using activeRouteId
get
https://api.socket.tech
/active-routes
Returns details about a given route
API-KEY needs to be passed in the headers while making the GET request

Description of response parameters :

Parameter
Description
success
Indicates successful response from endpoint, as intended.
activeRouteId
ID of route
userAddress
Address of user bridging via the route
totalUserTx
Number of transactions user has to perform on the route
userTxs
Array of objects breaking down each user transaction
userTxs.sender
Address of tx sender
userTxs.txType
Type of transaction. Values in Types page ​
userTxs.chainId
ID of chain for transaction
userTxs.gasFees.asset
Object with metadata of gas token for chain
userTxs.gasFees.gasLimit
Estimated gasLimit for transaction
userTxs.gasFees.feesInUsd
Estimated gas fee in USD to display on UI. This could vary as per gas prices.
userTxs.toAsset
Object with metadata of receiving token in given tx
userTxs.protocol
Object with metadata of protocol
userTxs.toAmount
Amount of toAsset token to be received in given tx
userTxs.fromAsset
Object with metadata of sending token in given tx
userTxs.recipient
Address of recipient in given tx
userTxs.fromAmount
Amount of fromAsset token sent in given tx
userTxs.userTxType
Action of transaction user performs. Values in Types page ​
userTxs.userTxIndex
Index of transaction from totalUserTx
userTxs.approvalData
Object with data for token approval
fromChainId
ID of source chain
toChainId
ID of destination chain
fromAssetAddress
Address of sending token
toAssetAddress
Address of receiving token
fromAmount
Amount of sending token being bridged
toAmount
Amount of destination token received
routeStatus
Status of route. Values on Types page.
transactionData
Object with hashes of transactions performed by user
createdAt
Timestamp of route being created
updatedAt
Timestamp of route being updated
currentUserTxIndex
Index of transaction user last performed
fromAsset
Object with metadata of sending token
toAsset
Object with metadata of receiving token
​
TEST QUERY :
Copy link
On this page
get
Returns details about a given route
Description of response parameters :