Swap API

Overview

The Native Swap API offers a robust and user-friendly toolkit for seamless integration with Native Swap across various blockchain networks, including Ethereum, Binance, Polygon, Arbitrum, Avalanche, Mantle, Mana Pacific, Base, Zetachain, Linea, and zkLink Nova. Our API enables you to leverage Request-For-Quote (RFQ) pricing from all authorized professional market makers on Native and place orders without incurring additional network (gas) fees.

API endpoints

Our API enables users to fetch token swap prices and generate transaction data for executing on-chain swaps via Native's infrastructure. The intelligent routing algorithm ensures users receive the best possible market prices for optimal trading outcomes.

  • Orderbook: Use GET /orderbook to check Native price levels for all supported pairs. This endpoint is essential for any aggregator or resolver.

  • Indicative quote: Use GET /indicative-quote to obtain regular quotes for a given chain and token pair. Refer to the provided code snippet for implementation details.

  • Firm quote and call data: Use GET /firm-quote and GET /calldata to obtain transaction data necessary to execute swaps. Detailed code snippets are available for guidance.

Last updated