Skip to main content

Executing Swaps

This guide walks through the full swap lifecycle using the Vulcx API on Fogo.

Flow

  1. Get a quote. Find the best route and estimated output.
  2. Build a transaction. Get an unsigned transaction from the API.
  3. Sign. Sign the transaction with the user’s wallet.
  4. Submit. Send the signed transaction to the network.
  5. Confirm. Wait for on-chain confirmation.

Step 1: Get a quote

Step 2: Build the swap transaction

Step 3: Sign and submit

TypeScript

Using raw instructions instead

If you need to compose swap instructions with other instructions (e.g., creating token accounts, adding memos), use POST /instructions instead of POST /swap. See the Get Instructions endpoint.
Last modified on August 31, 2026