Protocol at a Glance
Every swap executes a directional route between two endpoints. Each endpoint is a CAIP-19 asset id that names the asset and the rail it settles on, such asarkade:bitcoin/slip44:0 or bolt11:bitcoin/slip44:0. Every route follows
the same flow. Only the contract that enforces it depends on the route:
When both endpoints use arkade, one Arkade transaction settles both legs,
and any compatible solver fills the funded contract.
Asset Swaps covers funding, the contract,
its states, and cancellation. Any other route has one endpoint outside Arkade
and uses paired HTLCs, one on each network.
Corridor Swaps covers who funds first,
how timeouts are ordered, and which evidence completes or recovers the swap,
for each BTC direction. Markets and Quotes
explains the split.
Before Value Moves
- Derive locally. Build the settlement contract from user-approved terms and wallet-owned data. Anything a solver returns is comparison data, and a mismatch stops the flow.
- Persist first. Store the identifiers, terms, and recovery data before funding.
- Reconcile from evidence. Recheck time-sensitive terms at commitment. Report a terminal result only from contract and destination-network evidence. A timeout means unknown.
Discovery and Registries
Discovery tells an application which markets and solvers may be reachable. Cards, indexes, fees, and feeds are advisory. Registries review solver cards and publish an index per network. They influence which solvers an application sees, but never implement a route or control settlement. Discovery and Registries has the card fields, index format, and curation options.RFQ and the Relay
Applications and solvers exchange RFQ messages through a relay. The RFQ Protocol has the messages, payloads, event kinds, and transport requirements.Lifecycle States
Each route’s states live on that route’s page:- Asset swap states: readings of the funded deposit.
- RFQ wire states: what a solver reports about a negotiation.
- Outcomes and reconciliation order for corridor routes.
Roles and Trust Boundaries
One organization may hold several roles, but their trust boundaries stay
separate. Trust and Limitations covers what
each role guarantees.