Squid Dev Documentation
  • Getting Started
    • Overview
    • Get an Integrator ID
    • Integrator Quickstart
  • Widget Integration
    • Add A Widget
      • Swap widget
        • Getting Started
        • Installing the Widget
        • React Installation
        • NextJS Installation
        • Vite Installation
        • Iframe Installation
        • Customization Guide
          • Default User Settings
          • Configuring Content
          • Default Chains and Tokens
          • Configuration Types
          • Collect Fees
        • Information for Integrators
        • Set default chains and tokens via URL
        • Errors
    • Upgrade Your Widget
  • API & SDK Integration
    • API
      • Swap & Bridge Example
      • Staking Example
      • Cross-chain NFT Purchase Example
      • Get Route Status
    • SDK
      • Cross-chain Swap Example
      • Staking Example
      • Cross-chain NFT Purchase Example
      • Get Route Status
    • Key Concepts
      • Route Request Parameters
      • Get a route
      • Execute the route
      • 🪝Hooks
        • How do hooks work
        • Build a preHook
        • Build a postHook
        • Using the full ERC20 or Native balance in a call
        • ❗Transfer the remainder to the user
        • Get a route and execute as normal
      • Express
      • Track status
      • Types
      • Collect Fees
      • Get supported tokens and chains
    • Coral: Intent Swaps
      • Integrating Coral
    • NEW: Bitcoin and Solana
  • Adding Tokens
    • Whitelist a Token
    • Interchain Token(ITS) Listings
      • How To List
    • Circle's EURC Integration Guide
  • Migration
    • Squid v2 vs Squid v1
    • v1 -> v2 Migration
  • Additional Resources
    • Contracts
    • Squid v1 Docs
      • SDK
        • Installing our SDK
        • Get supported tokens and chains
          • Example chains response
          • Example tokens response
        • Set your transfer parameters
        • Get a route
          • Understanding the route response
        • Execute your swap or call
        • Get Route Status
        • Contract calls
          • Code example
          • Creating a ContractCall object
          • Contract call types
          • Approving ERC20s in our multicall
          • Transferring the remainder to a user
        • Collect Fees
          • Fee collector contract addresses
        • Working example!
      • API
        • integratorId
        • API playground
        • Base URLs
        • Get supported tokens and chains
        • Get a route
        • Checking the status of a transaction
        • Error codes
          • V2 API
      • Cosmos
        • Installing our SDK
        • Get supported tokens and chains
          • Example chains response
          • Example tokens response
        • Set your transfer parameters
        • Get a route
          • Cosmos route response
        • Execute your swap or call on Cosmos
        • Get Route Status
        • Cosmos custom calls
        • Working cosmos example!
        • Fallback Addresses
    • Additional Dev Resources
      • Choose How To Integrate Squid
      • Squid x Tenderly
      • Testnet or Mainnet?
      • Understanding Gas Payments
      • Supported Chains and Tokens
      • Request a new supported token
      • Liquidity Sources
        • axlASSET Liquidity
      • Integrator type specific docs
        • DEXs
        • Aggregators
        • NFTs
      • Setting up an EVM signer
      • Setting up Cosmos signer
      • Contract addresses
      • SDK easter eggs
        • Setting toAmount
        • getAllBalances
        • Advanced set up
        • Manually approve a route
        • Manually approve an ERC20
      • Whitelist a token
      • Security & Audits
        • Security
        • Audits
        • Axelar
      • Get an integrator-id
    • Architecture
      • FAQ
      • Liquidity model
      • Architecture
      • General message passing (GMP)
      • Transaction times and fees
      • Fallback behaviour on failed transactions
      • Axelar
    • Brand Assets
      • "Powered by Squid" Policy
    • Audits & Security
    • Contact
  • Changelog
    • SDK
      • v1.3
      • v1.2
    • API
      • v1.9
      • v1.8
      • v1.7
      • v1.6
  • Old v2 Documentation (Deprecated)
    • Whitelist a Token
    • Interchain Token(ITS) Listings
      • How To List
    • Add A Widget
      • Swap widget
        • Getting Started
        • Installing the Widget
        • React Installation
        • NextJS Installation
        • Iframe Installation
        • Customization Guide
          • Default User Settings
          • Theme Customization
          • Configuring Content
          • Default Chains and Tokens
          • Configuration Types
          • Collect fees
        • Information for Integrators
        • Set default chains and tokens via URL
        • Errors
      • Stake widget
        • Installing the Widget
        • Configuration
        • Importing The widget
    • Quick Start
    • API
      • Swap & Bridge Example
      • Staking Example
      • Cross-chain NFT Purchase Example
    • SDK
      • Cross-chain Swap Example
      • Staking Example
      • Cross-chain NFT Purchase Example
    • Key Concepts
      • Route Request Parameters
      • Get a route
      • Execute the route
      • 🪝Hooks
        • How do hooks work
        • Build a preHook
        • Build a postHook
        • Using the full ERC20 or Native balance in a call
        • ❗Transfer the remainder to the user
        • Add your hooks to a route request, or widget
        • Get a route and execute as normal
      • Boost
      • Track status
      • Types
      • Collect Fees
      • Get supported tokens and chains
Powered by GitBook
On this page
  • How to use the status response
  • Example for EVM to Cosmos tx:
  1. Additional Resources
  2. Squid v1 Docs
  3. Cosmos

Get Route Status

This method aims to provide the status of the transaction

PreviousExecute your swap or call on CosmosNextCosmos custom calls

Last updated 1 year ago

Squid provides an API to get the overall status for the whole route and the status for the transaction on each chain.

Type:

const status = await squid.getStatus({
    transactionId,
    requestId,
    integratorId,
    fromChainId,
    toChainId,
})

Request Param:

Property
Description

transactionId

Transaction hash from the transaction submitted to the source chain.

requestId (optional)

Unique request id returned in getRoute response param, e.g. 340c79f3-4f63-4d72-a6e6-3b70edfd3fe3

integratorId (optional)

Unique Integrator Id for integration e.g. squid-swap-widget

fromChainId

From chain identifier

toChainId

To chain identifier

Key response values

id

Axelarscan tx id

squidTransactionStatus

Master param to watch for status of tx

fromChain

From chain details

toChain

To chain details

routeStatus

Array of status's for each chain

Example for EVM to Cosmos tx:

{
    "id": "0xee351c5ef26ed12cc21f1652cf0e6d18b8755e3b1f48a47e6200d78da7f3ce2f_0_5",
    "status": "destination_executed",
    "gasStatus": "gas_paid_enough_gas",
    "isGMPTransaction": true,
    "axelarTransactionUrl": "https://testnet.axelarscan.io/gmp/0xee351c5ef26ed12cc21f1652cf0e6d18b8755e3b1f48a47e6200d78da7f3ce2f",
    "fromChain": {
        "transactionId": "0xee351c5ef26ed12cc21f1652cf0e6d18b8755e3b1f48a47e6200d78da7f3ce2f",
        "blockNumber": 23289934,
        "callEventStatus": "",
        "callEventLog": [],
        "chainData": {
            "chainName": "Avalanche",
            "chainType": "evm",
            "rpc": "https://api.avax-test.network/ext/bc/C/rpc",
            "networkName": "Avalanche FUJI C-Chain Testnet",
            "chainId": 43113,
            "nativeCurrency": {
                "name": "Avalanche",
                "symbol": "AVAX",
                "decimals": 18,
                "icon": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/avalanche.svg"
            },
            "swapAmountForGas": "2000000",
            "chainIconURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/avalanche.svg",
            "blockExplorerUrls": [
                "https://testnet.snowtrace.io/"
            ],
            "chainNativeContracts": {
                "wrappedNativeToken": "0xd00ae08403B9bbb9124bB305C09058E32C39A48c",
                "ensRegistry": "0xa7eebb2926d22d34588497769889cbc2be0a5d97",
                "multicall": "0xcA11bde05977b3631167028862bE2a173976CA11",
                "usdcToken": ""
            },
            "axelarContracts": {
                "gateway": "0xC249632c2D40b9001FE907806902f63038B737Ab",
                "forecallable": ""
            },
            "squidContracts": {
                "squidRouter": "0x481A2AAE41cd34832dDCF5A79404538bb2c02bC8",
                "defaultCrosschainToken": "0x57f1c63497aee0be305b8852b354cec793da43bb",
                "squidMulticall": "0xd9b7849d3a49e287c8E448cea0aAe852861C4545"
            },
            "estimatedRouteDuration": 90,
            "estimatedExpressRouteDuration": 20
        },
        "transactionUrl": "https://testnet.snowtrace.io/tx/0xee351c5ef26ed12cc21f1652cf0e6d18b8755e3b1f48a47e6200d78da7f3ce2f"
    },
    "toChain": {
        "transactionId": "E520061B841FCF689D33D66CF65168C14047CC2DB902B77292874CB30EF82887",
        "blockNumber": 1264046,
        "callEventStatus": "",
        "callEventLog": [],
        "chainData": {
            "chainName": "osmosis-6",
            "chainType": "cosmos",
            "rpc": "https://rpc.osmotest5.osmosis.zone",
            "rest": "https://testnet-rest.osmosis.zone",
            "networkName": "Osmosis Testnet",
            "chainId": "osmo-test-5",
            "nativeCurrency": {
                "name": "Osmosis",
                "symbol": "OSMO",
                "decimals": 6,
                "icon": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/osmosis.svg"
            },
            "swapAmountForGas": "2000000",
            "chainIconURI": "https://raw.githubusercontent.com/axelarnetwork/axelar-docs/main/public/images/chains/osmosis.svg",
            "blockExplorerUrls": [
                "https://testnet.mintscan.io/osmosis-testnet/"
            ],
            "stakeCurrency": {
                "coinDenom": "OSMO",
                "coinMinimalDenom": "uosmo",
                "coinDecimals": 6,
                "coingeckoId": "osmosis"
            },
            "bip44": {
                "coinType": 118
            },
            "bech32Config": {
                "bech32PrefixAccAddr": "osmo",
                "bech32PrefixAccPub": "osmopub",
                "bech32PrefixValAddr": "osmovaloper",
                "bech32PrefixValPub": "osmovaloperpub",
                "bech32PrefixConsAddr": "osmovalcons",
                "bech32PrefixConsPub": "osmovalconspub"
            },
            "currencies": [
                {
                    "coinDenom": "OSMO",
                    "coinMinimalDenom": "uosmo",
                    "coinDecimals": 6,
                    "coingeckoId": "osmosis"
                },
                {
                    "coinDenom": "ION",
                    "coinMinimalDenom": "uion",
                    "coinDecimals": 6,
                    "coingeckoId": "ion"
                }
            ],
            "feeCurrencies": [
                {
                    "coinDenom": "OSMO",
                    "coinMinimalDenom": "uosmo",
                    "coinDecimals": 6,
                    "coingeckoId": "osmosis"
                }
            ],
            "coinType": 118,
            "gasPriceStep": {
                "low": 0,
                "average": 0,
                "high": 0.025
            },
            "features": [
                "ibc-transfer",
                "ibc-go"
            ],
            "squidContracts": {
                "defaultCrosschainToken": "uausdc"
            },
            "axelarContracts": {
                "gateway": ""
            },
            "chainToAxelarChannelId": "channel-312",
            "estimatedRouteDuration": 180,
            "estimatedExpressRouteDuration": 20
        },
        "transactionUrl": "https://testnet.mintscan.io/osmosis-testnet/txs/E520061B841FCF689D33D66CF65168C14047CC2DB902B77292874CB30EF82887"
    },
    "timeSpent": {
        "call_confirm": 28,
        "total": 42
    },
    "routeStatus": [
        {
            "chainId": 43113,
            "txHash": "0xee351c5ef26ed12cc21f1652cf0e6d18b8755e3b1f48a47e6200d78da7f3ce2f",
            "status": "success",
            "action": "call"
        },
        {
            "chainId": "axelar-testnet-lisbon-3",
            "txHash": "164ECB096CA000BB21D62662D2CFC94E0CEFD3103D936A0F9730A87E55A9DDE2",
            "status": "success",
            "action": "executed"
        },
        {
            "chainId": "osmo-test-5",
            "txHash": "",
            "status": "not found",
            "action": "executed"
        }
    ],
    "error": {},
    "squidTransactionStatus": "success"
}

You can also access the Axelar GMP block explorer to monitor your transaction status.

https://docs.axelar.dev/dev/monitor-recover/monitoring
#getstatus
How to use the status response