Kyber Proxy API

KyberSwap Route Encoding Proxy for Multi-Chain Price Discovery

Overview

Purpose

Proxy service that interfaces with KyberSwap API for price path discovery and route encoding across multiple blockchain networks.

Supported Chains

20+ blockchain networks including Ethereum, BSC, Arbitrum, Polygon, Optimism, Base, and more.

Features

Route encoding, multi-chain support, CORS handling, and secure API key management.

API Source

KyberSwap Aggregator API (aggregator-api.kyberswap.com)

API Endpoints

GET /kyber Get KyberSwap route encoding for token swaps
Query Parameters
Parameter Type Required Description
chainId string Required Chain ID for the target blockchain network
Supported Chain IDs
{ "1": "ethereum", "56": "bsc", "42161": "arbitrum", "137": "polygon", "10": "optimism", "43114": "avalanche", "8453": "base", "25": "cronos", "324": "zksync", "250": "fantom", "59144": "linea", "1101": "polygon-zkevm", "1313161554": "aurora", "199": "bittorrent", "534352": "scroll", "5000": "mantle", "81457": "blast", "146": "sonic" }
Response

Returns the KyberSwap route encoding response for the specified chain. The response format depends on the KyberSwap API endpoint being proxied.

200 OK 400 Bad Request 500 Internal Error

CORS Configuration

The following origins are whitelisted for CORS access:

Technical Details

Proxy Functionality

Forwards requests to KyberSwap API with proper headers and CORS handling

Chain Mapping

Maps numeric chain IDs to KyberSwap's chain name format

Headers

Sets Accept-Version: Latest header for KyberSwap API compatibility

Security

Removes Origin and Referer headers for privacy and security

Supported Networks

Major L1s
  • Ethereum (1)
  • BSC (56)
  • Polygon (137)
  • Avalanche (43114)
  • Fantom (250)
L2 Solutions
  • Arbitrum (42161)
  • Optimism (10)
  • Base (8453)
  • zkSync (324)
  • Polygon zkEVM (1101)
Emerging Chains
  • Linea (59144)
  • Scroll (534352)
  • Mantle (5000)
  • Blast (81457)
  • Sonic (146)
Others
  • Cronos (25)
  • Aurora (1313161554)
  • BitTorrent (199)