Get Started
The Aarc iframe widget is a powerful tool that allows developers to embed cross-chain transaction functionality directly into their decentralized applications (dApps) or websites. It simplifies the user experience by enabling seamless interactions—such as funding intents, executing cross-chain transactions, or managing wallets—without requiring users to leave the application interface.
Introduction
The iframe widget integrates Aarc’s Intent Execution Protocol into your application, providing users with a streamlined interface for:
Transaction Intent Management
Create and manage transaction intents with ease, handling complex cross-chain operations seamlessly.
Cross-Chain Operations
Execute cross-chain deposits, swaps, or payments with guaranteed outcomes and atomic transactions.
Flexible Funding Options
Interact with various funding sources including wallets and fiat onramps for seamless transactions.
Setup Guide (Using SDK Recommended)
Install Core Packages
Install the required Aarc packages:
Install Dependencies
Install additional required dependencies:
Configure Widget
Create an aarcConfig.ts
file with your application configuration:
To learn more about the config type visit this link
If you add contract
details in the destination then the widget will automatically enable checkout
mode where it will call a smart contract.
Setup Root Component
Wrap your application with the necessary providers and create an AarcFundKitModal
instance:
Learn more about AarcFundKitModal
from this guide.
Add Widget Trigger
Create a component to open the widget:
Optional: Preset Configuration
You can preset the widget with specific configurations to enhance user experience.