1inch Proxy API

1inch Swap API Proxy for Multi-Chain Price Discovery

Overview

Purpose

Proxy service that interfaces with 1inch API for token swap routing and price discovery across multiple blockchain networks.

API Version

1inch Swap API v6.1 with support for all major blockchain networks

Features

Token swaps, route optimization, multi-chain support, and secure API key management.

API Source

1inch API (api.1inch.dev) with Bearer token authentication

API Endpoints

GET /1inch Get 1inch swap routes and quotes
Query Parameters
Parameter Type Required Description
chain string Optional Chain ID for the target blockchain network (default: 1 for Ethereum)
Common Chain IDs
{ "1": "Ethereum", "56": "BSC", "137": "Polygon", "42161": "Arbitrum", "10": "Optimism", "43114": "Avalanche", "8453": "Base", "324": "zkSync Era", "1101": "Polygon zkEVM", "59144": "Linea", "534352": "Scroll", "5000": "Mantle", "81457": "Blast" }
Response

Returns the 1inch swap API response for the specified chain. The response includes swap routes, quotes, and transaction data.

200 OK 400 Bad Request 500 Internal Error

Authentication

API Key

Bearer token authentication with 1inch API key (automatically handled by proxy)

Security

API key is securely managed and not exposed to client applications

Rate Limits

Subject to 1inch API rate limits and usage policies

Headers

Authorization: Bearer token automatically added to all requests

Technical Details

Proxy Functionality

Forwards requests to 1inch API with proper authentication and CORS handling

Chain Support

Supports all chains available in 1inch Swap API v6.1

CORS Handling

Sets Access-Control-Allow-Origin: * for universal access

Error Handling

Graceful error handling with appropriate HTTP status codes

Swap Features

Route Optimization

Finds the best swap routes across multiple DEXs and aggregators

Price Quotes

Real-time price quotes with slippage protection

Transaction Data

Provides transaction data for executing swaps

Multi-DEX

Aggregates liquidity from multiple decentralized exchanges

Supported Networks

Major L1s
  • Ethereum (1)
  • BSC (56)
  • Polygon (137)
  • Avalanche (43114)
  • Fantom (250)
L2 Solutions
  • Arbitrum (42161)
  • Optimism (10)
  • Base (8453)
  • zkSync Era (324)
  • Polygon zkEVM (1101)
Emerging Chains
  • Linea (59144)
  • Scroll (534352)
  • Mantle (5000)
  • Blast (81457)
  • And many more...
Features
  • Cross-chain swaps
  • Gas optimization
  • Slippage protection
  • MEV protection