Skip to main content
PATCH
/
api
/
v1
/
solverRegistry
/
updateSolver
Update Solver
curl --request PATCH \
  --url https://quotes.eco.com/api/v1/solverRegistry/updateSolver \
  --header 'Content-Type: application/json' \
  --data '{
  "intentExecutionTypes": [
    "SELF_PUBLISH",
    "GASLESS"
  ],
  "crossChainRoutes": {
    "useTokenEnums": false,
    "crossChainRoutesConfig": {
      "1": {
        "137": [
          {
            "send": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
            "receive": [
              "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
            ]
          }
        ]
      },
      "137": {
        "1": [
          {
            "send": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
            "receive": [
              "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
            ]
          }
        ]
      }
    }
  },
  "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

x-beam-sig
string

Request signature header

x-beam-sig-expire
string

Request signature expiry header

x-beam-sig-address
string

Request signature address header

Body

application/json
intentExecutionTypes
enum<string>[]

Array of intent execution types that this solver supports

Example:
["SELF_PUBLISH", "GASLESS"]
crossChainRoutes
object

Configuration of cross-chain routes that this solver supports, organized by source and destination chains

quotesUrl
string

V1 endpoint URL for retrieving quotes from the solver

Example:

"https://solver.example.com/api/v1/quotes"

quotesV2Url
string

V2 endpoint URL for retrieving quotes from the solver with enhanced parameters

Example:

"https://solver.example.com/api/v2/quotes"

reverseQuotesUrl
string

V1 endpoint URL for retrieving reverse quotes (specify output, get input quotes)

Example:

"https://solver.example.com/api/v1/quotes/reverse"

receiveSignedIntentUrl
string

V1 endpoint URL where the solver receives signed intents for execution

Example:

"https://solver.example.com/api/v1/intents"

useSolverDataFormat
boolean

Whether to use solver-specific data format (true) or generic format (false)

Example:

true

Response

200 - application/json

Solver configuration successfully updated

The response is of type object.