This quickstart assumes familiarity with Solana’s transaction and network connection logic.
If unfamiliar, please refer to the Solana Cookbook.
1
Request a Quote
DFlow Swap API returns a quote specific to the token pair, amount, slippage tolerance,
platform fee, segmenter fee, and other parameters.A route is calculated for the swap at this step and returned along with the quote.
Request a Quote
Request a Quote
2
Request a Swap Transaction for the Quote
Given the quote, DFlow Swap API returns an executable transaction that encodes the route that
was calculated for the quote.
Request a Swap Transaction for the Quote
Request a Swap Transaction for the Quote
3
Submit the Transaction
Sign and then send the swap transaction directly to a Solana RPC or transaction submission endpoint
of your choice.
Submit the Transaction
Submit the Transaction