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
  1. Additional Resources
  2. Squid v1 Docs
  3. API

Error codes

The page contains the error codes for the Squid V1 API

Route API


message: "There is insufficient liquidity for this trade. Please decrease your input amount.",
statusCode: 400,
errorType: ErrorType.DexError,

message: `The input amount is not high enough to cover the bridge fee. Please send more than $${amountNeeded}`,
statusCode: 400,
errorType: ErrorType.RouteError,

message: "Price impact is too high. Try reducing the swap amount.",
statusCode: 452,
errorType: ErrorType.RouteError,

 message: "Cross-chain gas fee estimation is currently unavailable. Please refresh the page or try again later.",
statusCode: 400,
errorType: ErrorType.RouteError,

message: "Failed to estimate routes.",
statusCode: 400,
errorType: ErrorType.InvalidRequestError,

message: "Slippage must be between 0.01 and 99.99.",
statusCode: 400,
errorType: ErrorType.DexError,

General not support error
errorType: ErrorType.NotSupportedError,
statusCode: 400,

General route not support error
errorType: ErrorType.RouteError,
statusCode: 400,

Compliance error
statusCode: 400,
message: "Route not found, please contact support if the issue persists.",
errorType: ErrorType.UnknownError,

General service failure
errorType: ErrorType.UnknownError,
statusCode: 500,

Cosmos route error codes
message: "Unsupported route. Please try another one.",
errorType: ErrorType.RouteError,
statusCode: 400,

message: "Currently unable to get a quote from the Osmosis RPC",
errorType: ErrorType.DexError,
statusCode: 400,

message: "Missing fallbackAddresses field. For cosmos tx's it must be set.",
errorType: ErrorType.ValidationError,
statusCode: 400,

message: `Missing fallback address for Cosmos chain with slip44 type equals ${slip44}`,
errorType: ErrorType.ValidationError,
statusCode: 400,

message: "No paths found, please choose a different token pair",
errorType: ErrorType.RouteError,
statusCode: 400,

message: `Receiving gas with your swap is not supported yet for ${toChain.networkName}`,
statusCode: 400,
errorType: ErrorType.RouteError,

message: "GMP Calls directly from Axelar are not supported yet.",
statusCode: 400,
errorType: ErrorType.RouteError,

message: `Bridge fees (${feeAmount} ${bridgeToken.symbol}) are higher than the value of your transfer (${_bridgeAmount} ${bridgeToken.symbol}). Please increase your input amount to be greater than (${feeAmount} ${bridgeToken.symbol}).`,
statusCode: 400,
errorType: ErrorType.RouteError,

message: "Cosmos address validation failed. Invalid address",
errorType: ErrorType.ValidationError,
statusCode: 400,

message: "You must provide a fallback address of a chain with slip44 type equal to 118(e.g. cosmoshub, osmosis)",
errorType: ErrorType.ValidationError,
statusCode: 400,

Status API


message: "No transaction found in axelarscan",
statusCode: 404,
errorType: ErrorType.NotFoundError,

message: "Transaction Id is mandatory",
statusCode: 400,
errorType: ErrorType.NotSupportedError,

Tokens API


statusCode: 400,
message: "Token price is not available",
errorType: ErrorType.NotSupportedError,

message: `UNSUPPORTED_TOKEN: ${address}`,
statusCode: 404,
errorType: ErrorType.NotSupportedError,

message: `UNSUPPORTED_TOKEN_SYMBOL: ${symbol} on chain: ${chain.networkName} with id: ${chain.chainId}`,
statusCode: 404,
errorType: ErrorType.NotSupportedError,

Chains API


message: `UNSUPPORTED_CHAIN_ID: ${chainName}`,
statusCode: 400,
errorType: ErrorType.NotFoundError,

General errors

Geoblocked
status: "Error",
message: "Bad Request",
status: 400


status: "Rate Limited",
message:
  "Rate limit exceeded. Try again later or contact the Squid support team on Discord",
status: 429

PreviousChecking the status of a transactionNextV2 API

Last updated 1 year ago