Documentation Index
Fetch the complete documentation index at: https://pond.dflow.net/llms.txt
Use this file to discover all available pages before exploring further.
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.
Set Up
Imports, constants, and the wallet/connection used across every step.
Imports, Constants, and Wallet
Imports, Constants, and Wallet
Request an Intent Quote
The GET /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 open transaction returned with the intent, guaranteeing the minimum output without committing to any specific route.
Sign the Intent
Sign the Intent
Submit the Intent
Submit the signed intent to POST /submit-intent. The DFlow Aggregator picks the route at execution time based on current network conditions.
Submit the Intent
Submit the Intent
Monitor the Intent
Use the
monitorOrder helper from @dflow-protocol/swap-api-utils to wait for the intent to reach a terminal state. The helper watches the order onchain via Solana RPC, so the connection’s RPC must support JSON-RPC batch requests.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?
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.