Skip to content

Get Transaction Status

Base Url: api.decentscan.xyz
Endpoint: /getRouteTime

This endpoint enables you to request the average transaction time for each filler on each route. A filler is the underlying bridge that will complete the cross-chain transfer of tokens. A route is the specified source chain and destination chains for your transaction.

If you are using Decent's APIs to prepare transactions, the BoxActionResponse already includes a field estimatedTxTime. You should not need to use this endpoint when sending transactions; however, it may be useful in other contexts.

Query Parameters

ParameterDescriptionTypeRequired
srcChainIdChain ID of the source chain.ChainIdtrue
dstChainIdChain ID of the source chain.ChainIdtrue
fillerName of the bridgeId returned from the BoxActionResponse.stringtrue

Sample Request

Node Fetch
  const queryParams = new URLSearchParams({
    srcChainId: 42161,
    dstChainId: 8453,
    filler: "decent"
  });
 
  const options = { method: 'GET', headers: { 'x-api-key': `${process.env.DECENT_API_KEY}` }}
 
  fetch(`https://api.decentscan.xyz/getRouteTime?{queryParams}`, options)
    .then(response => response.json())
    .then(response => console.log(response))
    .catch(err => console.error(err));

Response Schema

Response
{ "seconds": number }