During development, you can use the developer endpoints without an API key. For production use, you’ll need an API key to avoid rate limits.
/intent, sign the open
transaction, submit the intent, then monitor until it settles.
Request an Intent Quote
Request an intent quote from the DFlow Trading API. The
/intent response returns
an open order transaction that signals the trader’s intent to swap at a
guaranteed minimum quote with a slippage tolerance. This intent defines the
constraints (pair, amount, slippage, fees), not a fixed route.Request an Intent Quote
Request an Intent Quote
Sign the Intent
Sign the intent, guaranteeing the minimum amount of output tokens without committing to any given route plan.
Sign the Intent
Sign the Intent
Submit the Intent
Intents are submitted to the DFlow Aggregator, which optimizes the execution of the trade based on network conditions.
Submit the Intent
Submit the Intent
Monitor the Intent
After submitting the Intent, monitor its status using the
monitorOrder helper function from the
@dflow-protocol/swap-api-utils package.Monitor the Intent
Monitor the Intent
API Routes
Cookbook Repository
This recipe, along with many more, is available in the DFlow Cookbook Repo. You can clone it and start coding immediately.Need Help?
Email Support
Reach out to our team at [email protected] for technical support,
partnership inquiries, or general questions.
Join Our Discord
Connect with other developers, get help, and stay updated on the latest
DFlow developments.
Dev Notifications
Join the DFlow Dev Notifications Telegram group to stay in the loop on
new features and other announcements.