API
Frontend JSON-RPC Endpoint
POST: https://solver-relay-v2.chaindefuser.com/rpc
1. Quote asset prices from solvers
Allow the front end to estimate potential output for a given exact input or the required input for a given exact output based on user intent. The solver bus will forward a quote request to all connected solvers, wait for up to 3000 ms, and return all available quote options to the user. Only one of exact_amount_in or exact_amount_out should be provided in the request, not both.
2. Publish intent
If the user is satisfied with the offer provided by the solver, they can sign an intent and send it to the Solver Bus for execution along with the solver's quote hash(es). Solver Bus supports these types of signatures for publishing intents: nep413, erc191, raw_ed25519
3. Get intent status
Check the status of intent execution.
Solver WS Endpoint
wss://solver-relay-v2.chaindefuser.com/ws
1. Subscribe to quote/quote_status requests
2. Receive quote requests
3. Respond to quote requests
Please note that unique id is required in the JSON-RPC message when using this method.
4.Receive quote_status event
5. Unsubscribe
Last updated