Skip to main content
During development, you can use the developer endpoints without an API key. For production use, request an API key for higher rate limits.
This recipe sends a SOL → USDC order on DFlow: request an order, sign the returned transaction, and submit it through your RPC.
1

Set up

Imports, env config, and the wallet/connection used across every step.
2

Request an order

GET /order returns a quote and a base64-encoded transaction in one call. Pass userPublicKey so DFlow can construct the transaction for you to sign.
3

Sign and submit

Deserialize the returned transaction, sign it with the user’s keypair, and submit it through your RPC.

Spot Trading

How spot trading works on DFlow, and when the intent-based path makes sense.

Add Platform Fees

Monetize trades with builder fees.

Add Priority Fees

Control execution speed with priority fees.

Authenticate Requests

Authenticate requests for production rate limits.

API Routes