Quickstart
Five minutes, one golden path: wallet → faucet → quote → commit → reveal. Examples usecurl against a running host — production
https://api.skia.money, local development http://localhost:3000.
Bearer auth on testnet is simulated: the token is the caller’s wallet address.
Commit and reveal authenticate as the taker (
senderWallet).1. Create a wallet
WalletSummary with custody: "server-custodial", seeded
balances, and per-chain entries. Note the address — it is the bearer for
everything below.
2. Fund it from the faucet
429 and a Retry-After header.
3. Get a quote (free, no auth)
QuoteResponse echoes the request and carries the exact uint256
signer/sender settlement fields, so the caller can construct /api/commit
without holding request state. It also carries settlementMode
(on-chain or simulated) — the honest answer for the lane you are about to
settle on. Quotes are never cached: the response embeds a live signed maker
order.
4. Commit
commitNonce + commitmentExpiry are authoritative at reveal.
5. Reveal and settle
SwapERC20.swap on the active
lane, or DB-simulated with txHash: null when the lane is not backed. The
response’s settlement fields are what your balances, orders, and tier read
from.
The one-shot alternative
The TypeScript SDK collapses steps 3–5 into one idempotent call:swap() is single-fire and idempotent by key; resumeSwap() covers both
crash windows (died between commit and reveal; died right after reveal). See
the TypeScript SDK guide.
Next
- Turn the quote into an obligation: Invoices.
- Understand what commit actually buys: Settlements.
- Full wire detail: the API Reference and the generated endpoint pages.