XY Finance
  • Getting Started
  • XY Token
  • Supported Blockchains/Bridges/DEXs
  • Fee Structure
    • 🌉yBridge Fee Information
    • 🌉(Legacy) XY Bridge Fee Information
  • products
    • Bridge Aggregator : XY Finance
      • Gasless Transaction
    • Bridge : yBridge
      • Yield Farming
      • Omnichain Settlement
      • Consensus
    • Refuel
    • Proxy Bridge
    • Cross Chain Infrastructure
  • Bridge Aggregator Integration
    • XY Finance API (Multiple Bridges Aggregator)
      • 1️⃣Get Quote
      • 2️⃣Get Allowance
      • 3️⃣Build Approval Transaction
      • 4️⃣Build Swap Transaction
      • 5️⃣Get Cross-Chain Status
      • 6️⃣Get MinimumSwapAmount
      • ✔️Recommended Tokens
      • ✅Supported Blockchains/Bridges/DEXs
      • 📩Error Message
      • 💰Monetization / Take Fees
      • 📄Change Log
    • XY Finance Widget (iframe)
      • (Legacy) XY Finance Widget (iframe)
    • XY Finance Widget (NPM)
      • 1️⃣Install the Widget
      • 2️⃣Configure the Widget
      • 3️⃣Customize the Theme
      • 📘Widget API Reference
      • 📄Change Log
    • Custom-Built Link
    • Token Listing
  • Single Bridge Integration
    • yBridge API
      • 1️⃣Get Quote
      • 2️⃣Get Allowance
      • 3️⃣Build Approval Transaction
      • 4️⃣Build Swap Transaction
      • 5️⃣Get Cross-Chain Status
      • 🚰Get Pool Liquidity
      • 💲Get Fee Structure
      • ✔️Recommended Tokens
      • ✅Supported Blockchains
      • 📩Error Message
      • 📄Change Log
    • yBridge Contract Integration
      • Integrate YBridge Contract
        • Bridge Example
        • Latest Upgrade ( 2024/07/17 )
        • Migrate from V2 to V3
      • Integrate YBridgeVault Contract
        • Maximum Available Liquidity
        • Migrate from V2 to V3
      • (Legacy) Integrate X Swap Contract
        • (Legacy) Bridge Example
      • (Legacy) Integrate Y Pool Contract
        • (Legacy) Maximum Available Liquidity
    • xAsset Bridge
      • How to Develop Under XY Standards
        • Function Interface for Token Contract
      • How to Deposit / Withdraw Liquidity
        • Direct Contract Interaction
        • Through the Explorer
      • Set up Your Own Validator
  • SMART CONTRACT
    • Addresses
      • Ethereum (chain id : 1)
      • BNB Chain (chain id : 56)
      • Polygon (chain id : 137)
      • Cronos (chain id : 25)
      • Avalanche (chain id : 43144)
      • Kucoin Community Chain (chain id : 321)
      • Arbitrum (chain id : 42161)
      • Optimism (chain id : 10)
      • Astar (chain id : 592)
      • Kaia (chain id : 8217)
      • zkSync Era (chain id : 324)
      • Polygon zkEVM ( chainid : 1101)
      • Linea (chain id : 59144)
      • Base (chain id : 8453)
      • Mantle ( chain id : 5000)
      • Scroll (chain id : 534352 )
      • Blast (chain id : 81457)
      • X Layer (chain id : 196)
      • Taiko (chain id : 167000)
      • Cronos zkEVM (chain id : 388)
      • Abstract (chain id : 2741)
      • Berachain (chain id : 80094)
      • Numbers (chain id : 10507)
      • Treasury
      • (Suspended)Fantom
      • (Suspended)ThunderCore
      • (Suspended)Moonriver
    • Audit Reports
    • Privileged Roles Management
  • Document
    • Terms of Use
    • AML and CFT Compliance Statement
    • Integration Terms and Brand Guidelines
    • Product Update
  • FAQ
    • How to Speed up Pending Transactions
    • How to add a custom RPC to my wallet
  • Contact Us
    • Telegram
    • Medium
    • Twitter
    • Discord
Powered by GitBook
On this page

Was this helpful?

  1. Bridge Aggregator Integration
  2. XY Finance API (Multiple Bridges Aggregator)

Error Message

// error response schema
{
    success: boolean
    errorCode: integer
    errorMsg: string
}
Description
errorMsg
errorCode

Unknown error.

Unknown error.

10000

System maintenance.

System under maintenance. Please wait and check our Twitter for updates.

10001

Parameter 'affiliate' is invalid.

Affiliate is required if commission_rate is provided.

20001

Parameter 'slippage" is invalid.

Slippage must be within the range [0, 50]

20003

Parameter 'swapProviders' is required.

If 'srcQuoteTokenAddress' differs from 'srcBridgeTokenAddress' or 'dstQuoteTokenAddress' differs from 'dstBridgeTokenAddress', API request parameter 'swapProviders' is required.

20004

Parameter 'bridgeProvider', 'srcBridgeTokenAddress' and 'dstBridgeTokenAddress' are required.

If 'srcChainId' differs from 'dstChainId', API request parameters 'bridgeProvider', 'srcBridgeTokenAddress' and 'dstBridgeTokenAddress' are required.

20005

Address is invalid.

Address {address} is invalid.

20006

Cannot apply parameter 'swap provider'.

{Source/Destination} 'swapProviders' is not allowed {reason}.

20007

Cannot apply parameter 'bridge provider'.

If 'srcChainId' equals 'dstChainId', API request parameter 'bridgeProviders' is not allowed.

20008

Parameter 'sourceQuoteToken' ≤ 0

API request parameter 'srcTokenAmount' must be greater than 0.

20009

Not supported network.

Chain {chain_id} is not supported.

30001

No available route found.

No available route found, please try again later.

30002

Not supported 'bridgeProviders'

'bridgeProvider' : {bridgeProvider} is not supported.

30003

Invalid 'commisionRate'

API request parameter 'commission_rate' {value} is not in the range [{lower_bound}, {upper_bound}].

30004

Not supported 'swapProviders'

'swapProvider' : {swapProvider} is not supported on chain {chain_id}.

30005

Network under maintenance.

The network chain id : {chain_id} is under maintenance, please follow our update.

30006

Applied dex aggregator currently no route.

Applied DEX aggregator is currently unable to provide available route for requested swap pair, please try again later.

30007

Not supported bridge token amount; amount is too low.

Bridge token amount below minimum threshold. Please try a higher amount. Minumum threshold : {Threshold_bridge_token_amount: int} {src_bridge_token_symbol: int} Threshold bridge token address : {src_bridge_token_address: int}

30008

Not supported bridge token amount; amount is too high.

Bridge token amount exceeds maximum threshold. Please try a lower amount. Maximum threshold : {Threshold_bridge_token_amount: int} {src_bridge_token_symbol: int} Threshold bridge token address : {src_bridge_token_address: int}

30009

[yBridge] requested bridge token is not a yBridge token

Requested bridge token is invalid and not supported by yBridge.

31003

[cBridge] API fail

cBridge API error.

32004

PreviousSupported Blockchains/Bridges/DEXsNextMonetization / Take Fees

Last updated 1 year ago

Was this helpful?

📩