Fetch a swap order for 1 SOL to USDC:
Get Order
Order Response
In the order response, you will receive a number of fields that are important to note of, such as theswapType, slippageBps, etc.
Refer to Response section for example responses.
Refer to API Reference section for the full response fields.
transaction: The base64 encoded transaction that you need to sign before submitting to the network.requestId: The request ID of the order to be used in theExecute Orderendpoint.
Execute Order endpoint. Let’s go!