curl --request PATCH \
--url https://quotes.eco.com/api/v1/solverRegistry/updateSolver \
--header 'Content-Type: application/json' \
--data '
{
"intentExecutionTypes": [
"SELF_PUBLISH",
"GASLESS"
],
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"useSolverDataFormat": true
}
'import requests
url = "https://quotes.eco.com/api/v1/solverRegistry/updateSolver"
payload = {
"intentExecutionTypes": ["SELF_PUBLISH", "GASLESS"],
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"useSolverDataFormat": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
intentExecutionTypes: ['SELF_PUBLISH', 'GASLESS'],
quotesUrl: 'https://solver.example.com/api/v1/quotes',
quotesV2Url: 'https://solver.example.com/api/v2/quotes',
reverseQuotesUrl: 'https://solver.example.com/api/v1/quotes/reverse',
receiveSignedIntentUrl: 'https://solver.example.com/api/v1/intents',
useSolverDataFormat: true
})
};
fetch('https://quotes.eco.com/api/v1/solverRegistry/updateSolver', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quotes.eco.com/api/v1/solverRegistry/updateSolver",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'intentExecutionTypes' => [
'SELF_PUBLISH',
'GASLESS'
],
'quotesUrl' => 'https://solver.example.com/api/v1/quotes',
'quotesV2Url' => 'https://solver.example.com/api/v2/quotes',
'reverseQuotesUrl' => 'https://solver.example.com/api/v1/quotes/reverse',
'receiveSignedIntentUrl' => 'https://solver.example.com/api/v1/intents',
'useSolverDataFormat' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://quotes.eco.com/api/v1/solverRegistry/updateSolver"
payload := strings.NewReader("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"useSolverDataFormat\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://quotes.eco.com/api/v1/solverRegistry/updateSolver")
.header("Content-Type", "application/json")
.body("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"useSolverDataFormat\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quotes.eco.com/api/v1/solverRegistry/updateSolver")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"useSolverDataFormat\": true\n}"
response = http.request(request)
puts response.read_body{}Update Solver
Update an existing registered solver configuration. Allows updating endpoints, supported routes, and execution types. This endpoint requires authentication via request signature headers from the solver owner.
curl --request PATCH \
--url https://quotes.eco.com/api/v1/solverRegistry/updateSolver \
--header 'Content-Type: application/json' \
--data '
{
"intentExecutionTypes": [
"SELF_PUBLISH",
"GASLESS"
],
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"useSolverDataFormat": true
}
'import requests
url = "https://quotes.eco.com/api/v1/solverRegistry/updateSolver"
payload = {
"intentExecutionTypes": ["SELF_PUBLISH", "GASLESS"],
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"useSolverDataFormat": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
intentExecutionTypes: ['SELF_PUBLISH', 'GASLESS'],
quotesUrl: 'https://solver.example.com/api/v1/quotes',
quotesV2Url: 'https://solver.example.com/api/v2/quotes',
reverseQuotesUrl: 'https://solver.example.com/api/v1/quotes/reverse',
receiveSignedIntentUrl: 'https://solver.example.com/api/v1/intents',
useSolverDataFormat: true
})
};
fetch('https://quotes.eco.com/api/v1/solverRegistry/updateSolver', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://quotes.eco.com/api/v1/solverRegistry/updateSolver",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'intentExecutionTypes' => [
'SELF_PUBLISH',
'GASLESS'
],
'quotesUrl' => 'https://solver.example.com/api/v1/quotes',
'quotesV2Url' => 'https://solver.example.com/api/v2/quotes',
'reverseQuotesUrl' => 'https://solver.example.com/api/v1/quotes/reverse',
'receiveSignedIntentUrl' => 'https://solver.example.com/api/v1/intents',
'useSolverDataFormat' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://quotes.eco.com/api/v1/solverRegistry/updateSolver"
payload := strings.NewReader("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"useSolverDataFormat\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://quotes.eco.com/api/v1/solverRegistry/updateSolver")
.header("Content-Type", "application/json")
.body("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"useSolverDataFormat\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quotes.eco.com/api/v1/solverRegistry/updateSolver")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"useSolverDataFormat\": true\n}"
response = http.request(request)
puts response.read_body{}Headers
Request signature header
Request signature expiry header
Request signature address header
Body
Array of intent execution types that this solver supports
SELF_PUBLISH, GASLESS ["SELF_PUBLISH", "GASLESS"]
Configuration of cross-chain routes that this solver supports, organized by source and destination chains
Show child attributes
Show child attributes
V1 endpoint URL for retrieving quotes from the solver
"https://solver.example.com/api/v1/quotes"
V2 endpoint URL for retrieving quotes from the solver with enhanced parameters
"https://solver.example.com/api/v2/quotes"
V1 endpoint URL for retrieving reverse quotes (specify output, get input quotes)
"https://solver.example.com/api/v1/quotes/reverse"
V1 endpoint URL where the solver receives signed intents for execution
"https://solver.example.com/api/v1/intents"
Whether to use solver-specific data format (true) or generic format (false)
true
Response
Solver configuration successfully updated
The response is of type object.
