wss://solver-relay-v2.chaindefuser.com/ws
subscribe
Subscribe to quote requests or quote status events.Subscription name:
"quote" or "quote_status"Example request
Example request
Example response
Example response
result- Subscription ID used for receiving events and unsubscribing
quote events
After subscribing to "quote", you’ll receive events like this:
Event
Only one of
exact_amount_in or exact_amount_out will be specified in each request.quote_status events
After subscribing to "quote_status", you’ll receive settlement notifications:
Event
quote_response
Respond to a quote request with a signed intent. A uniqueid is required in the JSON-RPC message.
Quote request identifier from the event
amount_out- Proposed amount forexact_amount_inrequestsamount_in- Proposed amount forexact_amount_outrequests
Signed intent data (same format as
publish_intent)Optional hashes of other quotes needed to fulfill this intent
Example request
Example request
Example response
Example response
result-"OK"when the quote response is accepted
unsubscribe
Unsubscribe from a subscription.Subscription ID returned by
subscribeExample request
Example request
Example response
Example response
result-"OK"when unsubscribed successfully