Search
⌘K
Classic Swap
API version: All versions
Introduction
Quick start
Methods
Find the best quote to swap with 1inch Router GET
Generate calldata to swap on 1inch Router GET
Address of the 1inch Router that is trusted to spend funds for the swap GET
Generate approve calldata to allow 1inch Router to perform a swap GET
Get the number of tokens that the 1inch Router is allowed to swap GET
List of liquidity sources that are available for routing in the 1inch Aggregation Protocol GET
List of tokens that are available for swap in the 1inch Aggregation protocol GET
Migration
Migration from v5.0 to v5.2
Migration from v5.2 to v6.0
Migration from v6.0 to v6.1
Docs·APIs·Swap API·Classic Swap·Introduction

Introduction

The 1inch classic swap API (Pathfinder v6.1) is a cutting-edge discovery and routing algorithm that offers asset exchanges at the best rates on the market. Pathfinder finds the most efficient paths for a token swap and is able to split between different protocols and even different market depths within one protocol in the shortest possible time.

Supported Chains

Supported Chains Chain ID
Ethereum 1
Solana 501
Base 8453
Binance 56
zkSync 324
Gnosis 100
Optimism 10
Polygon 137
Linea 59144
Sonic 146
Unichain 130
Arbitrum 42161
Avalanche 43114

Eficiency

The latest version (V 6.1) of Pathfinder algorithm pushes DeFi trading forward by unlocking smarter, more efficient swaps, and bringing a number of concrete advantages to 1inch Swap users:

  • Maximized returns: multiple swap paths are combined to secure the best rates, delivering more value from every trade.
  • Superior liquidity efficiency: by splitting volumes into finer chunks and blending paths, Pathfinder taps into pools more effectively, skimming the cream from concentrated liquidity for optimal exchanges.
  • Unrivaled access: the new Pathfinder facilitates a deeper dive into diverse liquidity pools, distributing volume to capture better rates where it matters most.
  • Gas efficiency: by merging paths to achieve better gas cost efficiency, every swap becomes more cost-effective.

Before V 6.1

old routing

After V 6.1

new pathfinder routing

API reference

For detailed information about each endpoint, refer to the classic swap API OpenAPI specs.

Quickstart

In order to quickly understand how to make an exchange using the protocol, we suggest you use the Quickstart guide.

For workloads that require higher RPS, expanded quotas, or sustained performance, explore the available paid plans on the pricing page. For organizations with significant trading volumes or advanced requirements, complete this application to explore tailored Enterprise options.

Did you find what you need?