Skip to main content

Swap workflow

The execution flow includes three participants:
1

Request a quote

The user selects the source asset, destination asset, and amount. The partner calls POST /quote. Competing resolvers return a time-limited RFQ offer with pricing, fees, and execution constraints.
2

Create an intent

After the user accepts a quote, the partner calls POST /intents with the quote ID and the user’s source, destination, and refund addresses. Utexo returns an intent ID and the approval mechanism required by the source network.
3

Collect chain-specific approval

The user signs the approval data locally:
  • EVM and Tron use Permit2.
  • Bitcoin uses a Partially Signed Bitcoin Transaction (PSBT) for an HTLC deposit.
  • Solana uses a cosigned versioned transaction.
The partner submits the signed approval with POST /intents/{id}/approvals.
4

Execute the swap

Utexo notifies the selected resolver. The resolver executes the source-chain settlement action and transfers the destination assets to the user under the signed conditions.
5

Verify settlement

The wallet verifies the destination settlement. The partner can monitor progress with GET /intents/{id}/status, GET /swaps, or GET /swaps/{id}.