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.
This recipe assumes familiarity with Solana’s transaction and network
connection logic. If unfamiliar, please refer to the Solana
Cookbook.
Request an Order
The Trade API’s GET
/order endpoint returns a quote and open transaction in a single request.Request an Order
Request an Order
Sign and Submit the Transaction
Deserialize the transaction, sign it with your keypair, and submit it to Solana using your RPC connection.
Sign and Submit the Transaction
Sign and Submit the Transaction
Monitor Order Status
How you monitor order completion depends on the
executionMode returned from the order request:Sync trades execute atomically in a single transaction. Use standard RPC confirmation.Async trades execute across multiple transactions. Use the /order-status endpoint to poll for completion.Monitor Sync Trade
Monitor Sync Trade
For synchronous trades that execute atomically, use standard Solana transaction confirmation:
Monitor Async Trade
Monitor Async Trade
For asynchronous trades that execute across multiple transactions, poll the
/order-status endpoint: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.