This quickstart assumes familiarity with Solana’s transaction and network
connection logic. If unfamiliar, please refer to the Solana
Cookbook.
1
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
2
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
3
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: