Skip to main content

HTTP

Every error carries an error string. Route selection refusals also carry a machine-readable code, a hint, the resolved mints and the figures that caused the refusal.
no_route and both 422 refusals are returned identically by /v1/quote, /v1/swap and the quote stream, because all three run the same selection.

Quote stream

Errors are pushed on the socket as {"error": "…"} with no envelope:

Market stream

Errors are typed frames with an id echoing the request:

Notices and close codes