bugTroubleshooting

This guide covers common issues when integrating the Intents Swap Widget.

If you can't find an answer here, please open an issuearrow-up-right or reach out to the team.

Table of Contents

  • Balance Loading Issues

  • Dependency Conflicts

  • Wallet Connection Problems

  • Configuration Errors

Balance Loading Issues

Balances load infinitely

Causes & Solutions:

  1. Missing API key - The widget will try to use a set of RPCs by default, but Alchemy is more reliable and you can have better control with Alchemy API key.

    <SwapWidget
      alchemyApiKey="your-alchemy-api-key"
      // ...other props
    />
  2. API rate limits - Alchemy free tier has request limits. Check your Alchemy dashboard for quota usage.

  3. TON balances not loading - TON requires a separate API key.

    <SwapWidget
      tonCenterApiKey="your-toncenter-api-key"
      // ...other props
    />
  4. RPC endpoint issues - The widget retries failed RPC calls twice before giving up. If balances still fail, check network connectivity and RPC availability.

Dependency Conflicts

Conflicting package versions

Cause: The widget uses several libraries that your project may also use. When versions differ, bundlers may include multiple versions causing conflicts.

Solution: Add resolutions to your package.json to lock versions, example:

For Yarn, resolutions work as shown above. For npm or bun, use overrides instead:

Please refer to your package manager documentation for ways of doing this:

Wallet Connection Problems

Wallet not connecting

Solutions:

  1. Check provider configuration - Ensure you're passing the correct provider for your account type:

  2. Add the matching network plugin - For EVM, Solana, and Stellar swaps, you also need to install the relevant sibling package and register its network plugin via the plugins property.

Errors like No EVM transfer configured mean the plugin is missing:

Note that NEAR is built into widget core and does not need a plugin.

  1. Verify walletSupportedChains - We will attempt to establish the supported chains based on the format of the wallet address, however, you may want to include chains your wallet supports:

Configuration Errors

No styles/broken design

Cause: Missing CSS imports.

Solution: Import required CSS files:

Check our detailed theming documentation.

Tailwind & CSS reset

If you use global CSS reset e.g.:

It will break widget's styles due to Tailwind layering system. If you face that issue and see no paddings, margins or other style issues in a widget please scope your CSS resetting styles with a @layer base as below:

Still Having Issues?

If this guide didn't solve your problem:

  1. Check the GitHub Issuesarrow-up-right for similar problems

  2. Open a new issue with:

    • Widget version

    • Your configuration (remove sensitive keys)

    • Error messages from the console

    • Steps to reproduce

Last updated