Skip to main content
This quickstart guide walks you through performing a cross-chain swap using the dKit API. We’ll swap ETH on Ethereum to BTC on Bitcoin via THORChain as an example.
Make sure you have your wallet connected and funded with the asset you want to swap.

Step 1: Get a Quote

First, get available routes and pricing for your swap. The quote endpoint will return the best available routes across all integrated DEXs.
The quoteId and routeIndex of the response are used to fetch the status of the swap via the /track endpoint and return rich information on the route.

Step 2: Execute the Swap

Use the quote information to submit your transaction on-chain. For this ETH to BTC swap via THORChain, you’ll send ETH to the inbound address with the memo.
Always verify the targetAddress or inboundAddress matches what the quote returned before sending funds.

Step 3: Track Your Swap

Monitor the progress of your swap until completion. The swap tracking endpoint accepts the quoteId and routeIndex from the quote response and provides real-time status updates with rich route information.
Congratulations! You’ve completed your first cross-chain swap with dKit.

What’s Next?