Taker

Takers are end‑users or dApps that initiate swaps or place limit orders through the DotSwap interface or SDK.

Responsibility
Detail

Submit Intent

Send swap amount, asset pair, and slippage tolerance to DotSwap Server via REST/WebSocket.

Limit Order

Optionally post an off‑chain price‑bound intent; Nexus Engine activates when target price is met.

PSBT Review & Signature

Receive PSBT draft, confirm outputs (price, fees, change), then sign and return to Engine for broadcast.

Channel Management (Optional)

For high‑frequency usage, commit assets to a 2‑of‑2 Channel to avoid per‑swap block waits.

Slippage & Fee Control

Define max slippage and fee cap; Engine enforces in PSBT.

Interaction Flow

  1. Wallet Connect → User links Xverse, UniSat, etc.

  2. Intent Submit → Swap or limit‑order parameters sent to Server.

  3. Quote Display → UI shows best route + draft PSBT from Engine.

  4. User Signature → Wallet signs; PSBT returns to Engine.

  5. Broadcast & Confirm → Engine pushes tx, UI streams confirmation.

  6. Post‑Trade Update → Balances refreshed, LP points credited.

Optional Modes

  • Account (V1) — Pre‑deposit custodial balance; Server signs on user’s behalf for faster UX.

  • Channel Mode — Commit BTC/Runes into 2‑of‑2 channel for up to 25 swaps per UTXO.

As a Taker, you maintain full control of your keys and can verify every PSBT before signing, ensuring trustless settlement on Bitcoin Layer 1.

Last updated