Troubleshooting

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

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. 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.

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