Skip to main content
Use the Swap API when you need to build a custom or headless swap experience instead of embedding the @coin-voyage/swapkit React widget. Standalone swaps are separate from PayKit’s SALE and DEPOSIT payment flows. The server-side swap methods are currently exposed through ApiClient from @coin-voyage/paykit/server. Initialize the client with your CoinVoyage API key before requesting a quote:

swapQuote

Gets a standalone swap quote for one source and destination pair.

swapExecute

Creates payment instructions for a standalone swap.