Comment on page
🚦

Native API

Native API allows users to get prices for token swap and build transaction data to execute swap on-chain through Native infrastructure.
Before using the Native API, you need to create a project and generate an API key in the Developer Portal. You can refer to Create your project and get API Key to get started.

Get started

We provide users with the best possible prices on the market through an intelligent routing algorithm;
  • Refer to the authentication to guide you on how to authenticate yourself to access Native API
  • Refer to get /orderbook for any aggregator or resolvers to know Native price levels for all the supported pairs
  • Refer to get /indicative-quote to get quote regularly for a given chain and token pair. Code snippet can be found here.
  • Refer to get /firm-quote and get /calldata to obtain transaction data to execute the swap. Code snippet can be found here.