IBExWalletAPI
Blockchain OperationsSwap Tokens

Get best route quote across same-chain swap and cross-chain bridge

POST
/v1.2/safes/routes/quote

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
sourceChainIdRequirednumber
destinationChainIdRequirednumber
sellTokenAddressRequiredstring
buyTokenAddressRequiredstring
amountRequiredstring
safeAddressstring
providerPreferencestring
Value in: "COWSWAP" | "1INCH" | "BRIDGE" | "BOTH" | "ALL"
curl -X POST "https://passkeys-productionv2.ibex.fi/v1.2/safes/routes/quote" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceChainId": 0,
    "destinationChainId": 0,
    "sellTokenAddress": "string",
    "buyTokenAddress": "string",
    "amount": "string",
    "safeAddress": "string",
    "providerPreference": "COWSWAP"
  }'

Default Response