Circle's EURC Integration Guide

This guide will help you integrate EURC cross-chain transfers into your application using Squid's widget, API, or SDK in as little as 20 minutes. You'll learn how to enable seamless cross-chain transfers to EURC on Base, Ethereum, and Avalanche. While this guide focuses on EURC, it extends to all tokens listed on Squid.

Supported EURC Contract Addresses

Base: 0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42

Ethereum: 0x1abaea1f7c830bd89acc67ec4af516284b1bc33c

Avalanche: 0xc891eb4cbdeff6e073e859e987815ed1505c2acd

Integration Options

Squid makes it easy to integrate EURC into your app using the Squid widget. Out of the box, you can allow users to bridge any asset from over 80+ supported chains into EURC on the chain of your choice. There are three ways you can integrate Squid:

  1. Widget

    1. This is as simple as an iframe or your can natively integrate it into your app using React, NextJS or Vite.

  2. API (language-agnostic)

    1. RESTful endpoints for any programming language

    2. Supporting cross-chain swaps into custom application flows.

  3. SDK (for JavaScript/TypeScript applications)

    1. Supporting cross-chain swaps into custom application flows.

    2. Full programmatic control for custom integration

Helpful Resources

Here is a short list of resources that will help you on your journey to integrate EURC into your application with Squid.

Widget Installation Options

1. iFrame Integration (Universal Method)

The simplest way to integrate EURC acquisition into any application is using Squid's iFrame implementation. This method works with any framework or platform and requires minimal setup.

To customize the iFrame implementation:

  1. Configure your preferences

  2. Click "Get iFrame" to receive your custom configuration

  3. Copy the generated iFrame code into your application

You can find the full iframe documentation here.

2. React Integration

For React applications, import and implement the Squid Widget:

You can find the full React documentation here.

3. NextJS Integration

Add the following to your next.config.js:

Then implement the widget similar to the React example above.

You can find the full NextJS documentation here.

4. Vite Integration

Update your vite.config.ts to include:

You can find the full Vite documentation here.

Customization

Theme Customization

Use the Squid Widget Studio to customize the appearance:

You can find the full customization documentation here.

API Integration

This documentation details how to request a route, execute a transaction, and check the status of the transaction. You can find the full API integration documentation here.

Route Generation

Transaction Execution

Transaction Status Check

SDK Integration

This documentation details how to request a route, execute a transaction, and check the status of the transaction. You can find the full SDK integration documentation here.

Installing the SDK

Basic EURC Integration Example

Monitoring Transaction Status

Last updated