Search
⌘K
Cross-Chain Swaps (Fusion+)
API version: All versions
Introduction
Quick Start
EVM → EVM
EVM → Solana
Solana → EVM
Orders
Get cross chain swap active orders GET
Get actual escrow factory contract address (v2 for fee-enabled orders) GET
Get orders by maker address GET
Get all data to perform withdrawal and cancellation GET
Get idx of each secret that is ready for submission for specific order GET
Get idx of each secret that is ready for submission for all orders GET
Get all data to perform a cancellation or withdrawal on public periods GET
Get order by hash (v1.2 with fee support) GET
Get orders by hashes (v1.2 with fee support) POST
Get cross chain swap cancelable orders by chain GET
Get cross chain swap active orders GET
Get actual escrow factory contract address GET
Get orders by maker address GET
Get all data to perform withdrawal and cancellation GET
Get idx of each secret that is ready for submission for specific order GET
Get idx of each secret that is ready for submission for all orders GET
Get all data to perform a cancellation or withdrawal on public periods GET
Get order by hash GET
Get orders by hashes POST
Get cross chain swap cancelable orders by chain GET
Quoter
Get quote details based on input data with fee support (v1.2) GET
Get quote with custom preset details (v1.2 with fee support) POST
Build EVM order by given quoteId (v1.2) POST
Build create order unsigned transaction for Solana (v1.2) POST
Get quote details based on input data GET
Get quote with custom preset details POST
Get quote details based on input data GET
Get quote with custom preset details POST
Build order by given quote POST
Build create order unsigned transaction POST
Relayer
Submit a cross-chain order with fee support that resolvers will be able to fill POST
Submit many cross chain orders with fee support that resolvers will be able to fill POST
Submit a secret for order fill after SrcEscrow and DstEscrow deployed and DstChain finality lock passed POST
Submit a cross-chain order that resolvers will be able to fill POST
Submit many cross chain orders that resolvers will be able to fill POST
Submit a secret for order fill after SrcEscrow and DstEscrow deployed and DstChain finality lock passed POST
SDK
Overview
When and how to submit a secret
Swapping a native token with Cross-Chain Swap
Auction Calculator
WebSocket API
Docs·APIs·Swap API·Cross-Chain Swaps (Fusion+)·SDK·Overview

Overview

The 1inch Cross-Chain Swap SDK (Fusion+) provides high-level functionality for performing atomic cross-chain swaps between EVM chains. Fusion+ enables swaps across different blockchains without bridges or messaging protocols.

Key Benefits

  • No bridges needed — Atomic swaps via escrow contracts on both chains
  • MEV Protection — Dutch auction mechanism prevents front-running and sandwich attacks
  • Gas cost abstraction — Resolvers pay gas fees on both source and destination chains
  • Native token support — Swap directly from ETH, AVAX, BNB, etc. without wrapping
  • 13+ supported chains — Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Avalanche, and more

How Cross-Chain Fusion+ Works

  1. Sign Order — The SDK generates a cross-chain order specifying source/destination tokens and chains
  2. Dutch Auction — Resolvers compete to fill your order at the best price
  3. Escrow Deployment — The winning resolver deploys escrow contracts on both chains
  4. Secret Reveal — You reveal cryptographic secrets to unlock escrows and finalize the swap
  5. Assets Delivered — Tokens arrive on the destination chain atomically

Core Methods

  • getQuote — Fetches cross-chain pricing, including auction parameters and secret counts
  • placeOrder — Signs and submits a cross-chain order for ERC-20 tokens (all-in-one)
  • createOrder — Generates an order struct for native token swaps (requires separate submission)
  • submitNativeOrder — Submits a native token order to the relayer
  • getOrderStatus — Checks order status (pending, executed, expired, refunded)
  • getReadyToAcceptSecretFills — Checks if escrows are deployed and ready for secret submission
  • submitSecret — Reveals a secret to unlock escrows and finalize the swap
  • WebSocketApi — Real-time order status updates as an alternative to polling

Integration Pattern

A typical ERC-20 cross-chain swap follows this flow:

  1. Initialize SDK — Create an SDK instance with your API key and blockchain provider
  2. Check Allowance — Ensure the source token is approved for the Aggregation Router
  3. Fetch Quote — Get cross-chain pricing for your swap
  4. Generate Secrets — Create cryptographic secrets for escrow locking
  5. Place Order — Submit the signed order with hashlock and secret hashes
  6. Monitor & Submit Secrets — Poll for escrow deployment, then reveal secrets to finalize

Interactive Code Example

Explore the complete implementation — this example demonstrates a cross-chain ERC-20 swap:

Did you find what you need?