1
Get a quote
Price the swap. You get back the best route across every venue plus an opaque
quoteToken.2
Execute
Hand the
quoteToken back. RAVN returns how to complete the swap, tagged by executionType.3
Complete it
Branch on
executionType. This is the entire client-side contract.4
Track it
Poll Poll every swap to a terminal state. That poll is what marks the swap settled in RAVN’s
ledger, and only settled swaps count toward a fee payout. See Settlement.
status with the quoteToken that execute returned (not the one from step 1), and as
ref: the statusRef from execute (DEPOSIT, and TRANSACTION when present), the
statusRef from submit-signature (SIGNATURE), or otherwise the transaction hash you
broadcast (TRANSACTION).Amounts are strings in the token’s smallest unit. Native coin uses the sentinel
0xEeee...EEeE. The quoteToken is opaque, so never parse it. It expires, so re-quote if it
goes stale.
