Skip to content
Docs

Recipes

Swap flow

Quote a swap, sign and broadcast the swap transaction, and track the route to completion.

Overview

  1. Swap quote
  2. Show the expected output amount and estimated gas cost to the user
  3. Sign the swap transaction on the device and broadcast it
  4. Poll route status with the transaction hash until the route is done, which matters most for cross-chain bridges