curl --request POST \
--url https://quotes.eco.com/api/v1/solverRegistry/registerSolver \
--header 'Content-Type: application/json' \
--data '
{
"intentExecutionTypes": [
"SELF_PUBLISH",
"GASLESS"
],
"crossChainRoutes": {
"crossChainRoutesConfig": {},
"useTokenEnums": false
},
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"supportsNativeTransfers": true,
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesV2Url": "https://solver.example.com/api/v2/quotes/reverse",
"receiveSignedIntentV2Url": "https://solver.example.com/api/v2/intents",
"gaslessIntentTransactionDataUrl": "https://solver.example.com/api/v1/gasless/transaction-data",
"useSolverDataFormat": true
}
'import requests
url = "https://quotes.eco.com/api/v1/solverRegistry/registerSolver"
payload = {
"intentExecutionTypes": ["SELF_PUBLISH", "GASLESS"],
"crossChainRoutes": {
"crossChainRoutesConfig": {},
"useTokenEnums": False
},
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"supportsNativeTransfers": True,
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesV2Url": "https://solver.example.com/api/v2/quotes/reverse",
"receiveSignedIntentV2Url": "https://solver.example.com/api/v2/intents",
"gaslessIntentTransactionDataUrl": "https://solver.example.com/api/v1/gasless/transaction-data",
"useSolverDataFormat": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
intentExecutionTypes: ['SELF_PUBLISH', 'GASLESS'],
crossChainRoutes: {crossChainRoutesConfig: {}, useTokenEnums: false},
quotesUrl: 'https://solver.example.com/api/v1/quotes',
receiveSignedIntentUrl: 'https://solver.example.com/api/v1/intents',
supportsNativeTransfers: true,
reverseQuotesUrl: 'https://solver.example.com/api/v1/quotes/reverse',
quotesV2Url: 'https://solver.example.com/api/v2/quotes',
reverseQuotesV2Url: 'https://solver.example.com/api/v2/quotes/reverse',
receiveSignedIntentV2Url: 'https://solver.example.com/api/v2/intents',
gaslessIntentTransactionDataUrl: 'https://solver.example.com/api/v1/gasless/transaction-data',
useSolverDataFormat: true
})
};
fetch('https://quotes.eco.com/api/v1/solverRegistry/registerSolver', 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/registerSolver",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'intentExecutionTypes' => [
'SELF_PUBLISH',
'GASLESS'
],
'crossChainRoutes' => [
'crossChainRoutesConfig' => [
],
'useTokenEnums' => false
],
'quotesUrl' => 'https://solver.example.com/api/v1/quotes',
'receiveSignedIntentUrl' => 'https://solver.example.com/api/v1/intents',
'supportsNativeTransfers' => true,
'reverseQuotesUrl' => 'https://solver.example.com/api/v1/quotes/reverse',
'quotesV2Url' => 'https://solver.example.com/api/v2/quotes',
'reverseQuotesV2Url' => 'https://solver.example.com/api/v2/quotes/reverse',
'receiveSignedIntentV2Url' => 'https://solver.example.com/api/v2/intents',
'gaslessIntentTransactionDataUrl' => 'https://solver.example.com/api/v1/gasless/transaction-data',
'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/registerSolver"
payload := strings.NewReader("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"crossChainRoutes\": {\n \"crossChainRoutesConfig\": {},\n \"useTokenEnums\": false\n },\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"supportsNativeTransfers\": true,\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesV2Url\": \"https://solver.example.com/api/v2/quotes/reverse\",\n \"receiveSignedIntentV2Url\": \"https://solver.example.com/api/v2/intents\",\n \"gaslessIntentTransactionDataUrl\": \"https://solver.example.com/api/v1/gasless/transaction-data\",\n \"useSolverDataFormat\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://quotes.eco.com/api/v1/solverRegistry/registerSolver")
.header("Content-Type", "application/json")
.body("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"crossChainRoutes\": {\n \"crossChainRoutesConfig\": {},\n \"useTokenEnums\": false\n },\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"supportsNativeTransfers\": true,\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesV2Url\": \"https://solver.example.com/api/v2/quotes/reverse\",\n \"receiveSignedIntentV2Url\": \"https://solver.example.com/api/v2/intents\",\n \"gaslessIntentTransactionDataUrl\": \"https://solver.example.com/api/v1/gasless/transaction-data\",\n \"useSolverDataFormat\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quotes.eco.com/api/v1/solverRegistry/registerSolver")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"crossChainRoutes\": {\n \"crossChainRoutesConfig\": {},\n \"useTokenEnums\": false\n },\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"supportsNativeTransfers\": true,\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesV2Url\": \"https://solver.example.com/api/v2/quotes/reverse\",\n \"receiveSignedIntentV2Url\": \"https://solver.example.com/api/v2/intents\",\n \"gaslessIntentTransactionDataUrl\": \"https://solver.example.com/api/v1/gasless/transaction-data\",\n \"useSolverDataFormat\": true\n}"
response = http.request(request)
puts response.read_body{}Register Solver
Register a new solver. Solvers provide quotes and execute intents on behalf of users. This endpoint requires authentication via request signature headers.
curl --request POST \
--url https://quotes.eco.com/api/v1/solverRegistry/registerSolver \
--header 'Content-Type: application/json' \
--data '
{
"intentExecutionTypes": [
"SELF_PUBLISH",
"GASLESS"
],
"crossChainRoutes": {
"crossChainRoutesConfig": {},
"useTokenEnums": false
},
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"supportsNativeTransfers": true,
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesV2Url": "https://solver.example.com/api/v2/quotes/reverse",
"receiveSignedIntentV2Url": "https://solver.example.com/api/v2/intents",
"gaslessIntentTransactionDataUrl": "https://solver.example.com/api/v1/gasless/transaction-data",
"useSolverDataFormat": true
}
'import requests
url = "https://quotes.eco.com/api/v1/solverRegistry/registerSolver"
payload = {
"intentExecutionTypes": ["SELF_PUBLISH", "GASLESS"],
"crossChainRoutes": {
"crossChainRoutesConfig": {},
"useTokenEnums": False
},
"quotesUrl": "https://solver.example.com/api/v1/quotes",
"receiveSignedIntentUrl": "https://solver.example.com/api/v1/intents",
"supportsNativeTransfers": True,
"reverseQuotesUrl": "https://solver.example.com/api/v1/quotes/reverse",
"quotesV2Url": "https://solver.example.com/api/v2/quotes",
"reverseQuotesV2Url": "https://solver.example.com/api/v2/quotes/reverse",
"receiveSignedIntentV2Url": "https://solver.example.com/api/v2/intents",
"gaslessIntentTransactionDataUrl": "https://solver.example.com/api/v1/gasless/transaction-data",
"useSolverDataFormat": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
intentExecutionTypes: ['SELF_PUBLISH', 'GASLESS'],
crossChainRoutes: {crossChainRoutesConfig: {}, useTokenEnums: false},
quotesUrl: 'https://solver.example.com/api/v1/quotes',
receiveSignedIntentUrl: 'https://solver.example.com/api/v1/intents',
supportsNativeTransfers: true,
reverseQuotesUrl: 'https://solver.example.com/api/v1/quotes/reverse',
quotesV2Url: 'https://solver.example.com/api/v2/quotes',
reverseQuotesV2Url: 'https://solver.example.com/api/v2/quotes/reverse',
receiveSignedIntentV2Url: 'https://solver.example.com/api/v2/intents',
gaslessIntentTransactionDataUrl: 'https://solver.example.com/api/v1/gasless/transaction-data',
useSolverDataFormat: true
})
};
fetch('https://quotes.eco.com/api/v1/solverRegistry/registerSolver', 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/registerSolver",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'intentExecutionTypes' => [
'SELF_PUBLISH',
'GASLESS'
],
'crossChainRoutes' => [
'crossChainRoutesConfig' => [
],
'useTokenEnums' => false
],
'quotesUrl' => 'https://solver.example.com/api/v1/quotes',
'receiveSignedIntentUrl' => 'https://solver.example.com/api/v1/intents',
'supportsNativeTransfers' => true,
'reverseQuotesUrl' => 'https://solver.example.com/api/v1/quotes/reverse',
'quotesV2Url' => 'https://solver.example.com/api/v2/quotes',
'reverseQuotesV2Url' => 'https://solver.example.com/api/v2/quotes/reverse',
'receiveSignedIntentV2Url' => 'https://solver.example.com/api/v2/intents',
'gaslessIntentTransactionDataUrl' => 'https://solver.example.com/api/v1/gasless/transaction-data',
'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/registerSolver"
payload := strings.NewReader("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"crossChainRoutes\": {\n \"crossChainRoutesConfig\": {},\n \"useTokenEnums\": false\n },\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"supportsNativeTransfers\": true,\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesV2Url\": \"https://solver.example.com/api/v2/quotes/reverse\",\n \"receiveSignedIntentV2Url\": \"https://solver.example.com/api/v2/intents\",\n \"gaslessIntentTransactionDataUrl\": \"https://solver.example.com/api/v1/gasless/transaction-data\",\n \"useSolverDataFormat\": true\n}")
req, _ := http.NewRequest("POST", 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.post("https://quotes.eco.com/api/v1/solverRegistry/registerSolver")
.header("Content-Type", "application/json")
.body("{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"crossChainRoutes\": {\n \"crossChainRoutesConfig\": {},\n \"useTokenEnums\": false\n },\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"supportsNativeTransfers\": true,\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesV2Url\": \"https://solver.example.com/api/v2/quotes/reverse\",\n \"receiveSignedIntentV2Url\": \"https://solver.example.com/api/v2/intents\",\n \"gaslessIntentTransactionDataUrl\": \"https://solver.example.com/api/v1/gasless/transaction-data\",\n \"useSolverDataFormat\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://quotes.eco.com/api/v1/solverRegistry/registerSolver")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"intentExecutionTypes\": [\n \"SELF_PUBLISH\",\n \"GASLESS\"\n ],\n \"crossChainRoutes\": {\n \"crossChainRoutesConfig\": {},\n \"useTokenEnums\": false\n },\n \"quotesUrl\": \"https://solver.example.com/api/v1/quotes\",\n \"receiveSignedIntentUrl\": \"https://solver.example.com/api/v1/intents\",\n \"supportsNativeTransfers\": true,\n \"reverseQuotesUrl\": \"https://solver.example.com/api/v1/quotes/reverse\",\n \"quotesV2Url\": \"https://solver.example.com/api/v2/quotes\",\n \"reverseQuotesV2Url\": \"https://solver.example.com/api/v2/quotes/reverse\",\n \"receiveSignedIntentV2Url\": \"https://solver.example.com/api/v2/intents\",\n \"gaslessIntentTransactionDataUrl\": \"https://solver.example.com/api/v1/gasless/transaction-data\",\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"
V1 endpoint URL where the solver receives signed intents for execution
"https://solver.example.com/api/v1/intents"
Whether the solver supports native token transfers (ETH, MATIC, etc.) without wrapping
true
V1 endpoint URL for retrieving reverse quotes (specify output, get input quotes)
"https://solver.example.com/api/v1/quotes/reverse"
V2 endpoint URL for retrieving quotes from the solver with enhanced parameters
"https://solver.example.com/api/v2/quotes"
V2 endpoint URL for retrieving reverse quotes with enhanced parameters
"https://solver.example.com/api/v2/quotes/reverse"
V2 endpoint URL where the solver receives signed intents with enhanced parameters
"https://solver.example.com/api/v2/intents"
Endpoint URL for retrieving transaction data for gasless intent execution
"https://solver.example.com/api/v1/gasless/transaction-data"
Whether to use solver-specific data format (true) or generic format (false)
true
Response
Solver successfully registered
The response is of type object.
