Skip to main content

ActiveRoutesController_getActiveRoutes

GET 

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

ActiveRoutesController_getActiveRoutes

Request​

Query Parameters

    activeRouteId stringrequired

    Id of the Active Route.

    Example: 420

Header Parameters

    API-KEY string

Responses​

Get active route details using active route id

Schema

    success booleanrequired

    Status of API response.

    result

    object

    required

    activeRouteId numberrequired

    Id of the Active Route.

    userAddress stringrequired

    Address of user doing the Active Route.

    totalUserTx numberrequired

    Total number of txs required in Active Route.

    userTxs object[]required

    Array of user txs.

    fromChainId numberrequired

    Id of source chain.

    toChainId numberrequired

    Id of destination chain.

    fromAssetAddress stringrequired

    Address of token on source chain.

    toAssetAddress stringrequired

    Address of token on destination chain.

    fromAmount stringrequired

    Amount of sending tokens.

    toAmount stringrequired

    Approximate amount of receiving tokens.

    routeStatus stringrequired

    Status of the Active Route.

    createdAt date-timerequired

    Timestamp of Route start.

    updatedAt date-timerequired

    Timestamp of last route update.

    currentUserTxIndex numberrequired

    Index of current tx in userTxs array.

    fromAsset

    object

    required

    name string

    Name of token.

    address stringrequired

    Address of token.

    icon string

    URL for icon of token.

    decimals number

    Decimal used for token.

    symbol stringrequired

    Symbol of token.

    chainId stringrequired

    Possible values: [MAINNET_CHAIN_ID, OPTIMISM_CHAIN_ID, BSC_CHAIN_ID, XDAI_CHAIN_ID, POLYGON_CHAIN_ID, FANTOM_CHAIN_ID, ZKSYNC_ERA_CHAIN_ID, POLYGON_ZKEVM_CHAIN_ID, MANTLE_CHAIN_ID, BASE_CHAIN_ID, MODE_CHAIN_ID, ARBITRUM_CHAIN_ID, AVAX_CHAIN_ID, LINEA_CHAIN_ID, BLAST_CHAIN_ID, SCROLL_CHAIN_ID, ZORA_CHAIN_ID, AURORA_CHAIN_ID]

    Chain id of the token

    logoURI string

    URL for icon of token.

    chainAgnosticId string

    Unique Id over all chains

    toAsset

    object

    required

    name string

    Name of token.

    address stringrequired

    Address of token.

    icon string

    URL for icon of token.

    decimals number

    Decimal used for token.

    symbol stringrequired

    Symbol of token.

    chainId stringrequired

    Possible values: [MAINNET_CHAIN_ID, OPTIMISM_CHAIN_ID, BSC_CHAIN_ID, XDAI_CHAIN_ID, POLYGON_CHAIN_ID, FANTOM_CHAIN_ID, ZKSYNC_ERA_CHAIN_ID, POLYGON_ZKEVM_CHAIN_ID, MANTLE_CHAIN_ID, BASE_CHAIN_ID, MODE_CHAIN_ID, ARBITRUM_CHAIN_ID, AVAX_CHAIN_ID, LINEA_CHAIN_ID, BLAST_CHAIN_ID, SCROLL_CHAIN_ID, ZORA_CHAIN_ID, AURORA_CHAIN_ID]

    Chain id of the token

    logoURI string

    URL for icon of token.

    chainAgnosticId string

    Unique Id over all chains

Loading...