Quick Start

Get up and running with IXFI Protocol in just a few minutes! This guide will walk you through your first cross-chain token swap.

Overview

In this quick start, you'll learn how to:

  1. Connect to the IXFI Protocol

  2. Perform a basic token swap

  3. Execute a cross-chain transfer

  4. Use the DEX aggregation features

1. Basic Setup

Frontend Integration

First, install and initialize the IXFI SDK:

import { IXFIProvider, CrossChainAggregator } from '@ixfi/sdk';
import { ethers } from 'ethers';

// Initialize Web3 provider
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();

// Initialize IXFI
const ixfi = new IXFIProvider({
  provider: provider,
  signer: signer,
  network: 'mainnet' // or 'testnet'
});

// Initialize DEX Aggregator
const aggregator = new CrossChainAggregator({
  provider: provider,
  signer: signer
});

Smart Contract Integration

For direct smart contract integration:

2. Your First Token Swap

Local Swap (Same Chain)

Swap tokens on the same blockchain using DEX aggregation:

Cross-Chain Swap

Swap tokens across different blockchains:

3. Cross-Chain Token Transfer

Send tokens to another blockchain:

4. Gasless Transactions

Execute transactions without holding native gas tokens:

5. DEX Aggregation Features

Compare All DEX Quotes

Multi-Protocol Routing

6. Error Handling

Implement proper error handling for production applications:

Next Steps

Now that you've completed the quick start:

  1. Explore Core Concepts - Understand how IXFI works

  2. Learn DEX Aggregation - Master multi-protocol trading

  3. Study Examples - See real-world integration patterns

  4. Read API Reference - Complete function documentation

Common Patterns

React Hook Example

Vue.js Integration

Support & Community

Ready to dive deeper? Continue with the Core Concepts section!

Last updated