Skip to main content
POST
/
api
/
swaps
/
route
Swap route by quoteId
curl --request POST \
  --url https://api.walletsuite.io/api/swaps/route \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "chain": "<string>",
  "quoteId": "<string>"
}
'
{
  "ok": true,
  "code": "<string>",
  "message": "<string>",
  "data": {
    "chain": "<string>",
    "provider": "ZERO_X",
    "quoteId": "<string>",
    "steps": [
      {
        "kind": "<string>",
        "description": "<string>",
        "needsApproval": true,
        "spender": "<string>",
        "approvalToken": "<string>",
        "approvalAmount": 123,
        "callTo": "<string>",
        "callData": "<string>"
      }
    ],
    "warnings": [
      "<string>"
    ],
    "totalEstimatedGas": 123
  }
}

Authorizations

x-api-key
string
header
required

API key provided by WalletSuite team

Body

application/json
chain
string
required
quoteId
string
required

Response

200 - */*

OK

ok
boolean
required
code
string
required
message
string
required
data
object