For the complete documentation index, see llms.txt. This page is also available as Markdown.
Guide
The Native Relay API connects you with Native Core's industry-grade liquidity and pricing, via a familiar RFQ format, powered by Native Relay — Mode RFQ.
Set up a Swap using Native Relay APIs
1. Get an API key
To start testing, please fill out the form and our team will get back to you with the API key.
2. Get orderbook
The latest prices for each pair Native quotes on a specified chain are published in an orderbook.
Our RFQ orderbook is updated every second with the latest prices from Native Core.
Next, obtain a quote with a price that Native is committed to. If the quote is favorable, you can execute it by submitting the associated call data to the Native Router on-chain.
Sample response
4. Submit call data to Native Router
To execute a firm quote, submit a transaction on-chain to call the Native Router with the returned call data.
You can find all the deployed addresses with their ABIs here: Addresses
Here’s an example of how to submit call data to the NativeRouter: