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
  4. Error codes

V2 API

Error messages from Squid v2 API

Route API

message: "Axelar gmp validation error",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Route type BRIDGE_ONLY not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Axelar validation error",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Bridge type CCTP not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Bridge provider CCTP not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Evm bridge validation error",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Validation data error",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Action type UNWRAP not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Select USDC on destination chain when sending USDC from Noble",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Invalid to chain identifier. Not found.",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Invalid from chain identifier. Not found.",
statusCode: 500,
errorType: ErrorType.Validation,

message: `Guardrails prevented this route as the price difference is more than 3000 USD, please reduce swap amount or bypass guardrails with \"bypassGaurdrails = true\"`,
statusCode: 452,
statusCode: 500,
errorType: ErrorType.NoLiquidity,

message: `Guardrails prevented this route as the price difference is more than 6%, please reduce swap amount or bypass guardrails with \"bypassGaurdrails = true\"`,
statusCode: 452,
statusCode: 500,
errorType: ErrorType.NoLiquidity,

message: `Guardrails prevented this route as the aggregate price impact is more than 3%, please reduce swap amount or bypass guardrails with \"bypassGaurdrails = true\"`,
statusCode: 452,
statusCode: 500,
errorType: ErrorType.NoLiquidity,

message: "Path finder api fail"
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Route not found, please contact support if the issue persists",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Error handling maintenance mode",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Invalid wrap direction",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Invalid USDY price",
statusCode: 500,
errorType: ErrorType.Validation,

message: `Action stage COSMOS not supported`,
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Unsupported ChainType for action list, failed to classify stage",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Single chain route generation from usdc to eth fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Evm only supported",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Unsupported chain type",
statusCode: 500,
errorType: ErrorType.Validation,

message: `Route generation from usdc to eth fail`,
statusCode: 500,
errorType: ErrorType.Unknown,

message: `Unsupported chain type Cosmos`,
statusCode: 500,
errorType: ErrorType.Validation,

message: "Bridge module not found",
statusCode: 500,
errorType: ErrorType.NotFound,

message: "Axelar bridge type not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Bridge provider not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: `Token 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 not found on bridge config`,
statusCode: 500,
errorType: ErrorType.Validation,

message: `subGraphId uusdc does not match for tokens in bridge action`,
statusCode: 500,
errorType: ErrorType.Validation,

message: `Invalid action type unwrap for single chain route`,
statusCode: 500,
errorType: ErrorType.Validation,

message: "Bridge only support for CCTP",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "Cosmos route not supported",
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "No routes were resolved",
statusCode: 500,
errorType: ErrorType.NotFound,

message: "Percent must be greater than 1 0.01%",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Percent must be less than 1000 10%",
statusCode: 500,
errorType: ErrorType.Validation,

message: `Wrapper usd+ disabled`,
statusCode: 500,
errorType: ErrorType.NotSupported,

message: `Dex uniswapv2 disabled`,
statusCode: 500,
errorType: ErrorType.NotSupported,

message: `Dex uniswapv2 not supported`,
statusCode: 500,
errorType: ErrorType.NotSupported,

message: "A route could not be generated for this trade. Please try increasing the amount, a different chain and token combination or try again later",,
statusCode: 500,
errorType: ErrorType.NoLiquidity,

message: "Invalid wrap action, same tokens",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Bridge name uusdc does not match subgraphIds for tokens in bridge action",
statusCode: 500,
errorType: ErrorType.Validation,

message: "Unable to find USD price for from token usdc",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Axelar and L2 destination gas fee estimation fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Transaction cost estimation fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Destination gas fee estimation fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Fee service fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Gas cost estimation fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Quote fail",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "CCTP only allows to transfer amounts that are higher then 10 USDC",
statusCode: 500,
errorType: ErrorType.Unknown,

message: "Missing from address field.",
statusCode: 500,
errorType: ErrorType.NotFound,

Status API

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

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

message: "Transaction has either reverted or failed ",
statusCode: 500,
errorType: ErrorType.InvalidRequestError,

message: "Transaction not found on source chain",
statusCode: 404,
errorType: ErrorType.NotFoundError,

message: "Invalid CCTP source transaction",
statusCode: 400,
errorType: ErrorType.InvalidRequestError,

message: "CCTP status is not supported for source chain",
statusCode: 500,
errorType: ErrorType.InputValidationError,

message: `Unsupported chain type: Solana`,
statusCode: 400,
errorType: ErrorType.NotSupportedError,

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

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

Chains API

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

message: `UNSUPPORTED_CCTP_DOMAIN_ID: ${domainId}`,
statusCode: 400,
errorType: ErrorType.NotFoundError,

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,
PreviousError codesNextCosmos

Last updated 1 year ago