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.
1

Set up

Imports, env config, and the wallet and RPC client 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

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

Spot Trading

How spot trading works on DFlow.

Platform Fees

Monetize trades with platform fees.

Add Priority Fees

Control execution speed with priority fees.

Authenticate Requests

Authenticate requests for production rate limits.

API Routes