Skip to main content
POST
/
v1
/
routes
cURL
curl --request POST \
  --url https://checkout.suave.money/v1/routes \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromToken": "0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",
  "toToken": "0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",
  "fromChainId": "10",
  "toChainId": "137",
  "inputAmount": "2000000"
}
'
{
  "id": "<string>",
  "steps": [
    {
      "protocol": "Across",
      "fromToken": {
        "symbol": "<string>",
        "decimals": 123,
        "name": "<string>",
        "logoURI": "<string>",
        "chain_to_address": {},
        "chains": [
          {}
        ]
      },
      "toToken": {
        "symbol": "<string>",
        "decimals": 123,
        "name": "<string>",
        "logoURI": "<string>",
        "chain_to_address": {},
        "chains": [
          {}
        ]
      },
      "fromChainId": 123,
      "toChainId": 123,
      "inputAmount": "<string>",
      "outputAmount": "<string>",
      "estimatedTime": "<string>",
      "fees": [
        {
          "amount": "<string>",
          "currency": {
            "symbol": "<string>",
            "decimals": 123,
            "name": "<string>",
            "logoURI": "<string>",
            "chain_to_address": {},
            "chains": [
              {}
            ]
          }
        }
      ]
    }
  ],
  "estimatedTime": "<string>",
  "totalFees": [
    {
      "amount": "<string>",
      "currency": {
        "symbol": "<string>",
        "decimals": 123,
        "name": "<string>",
        "logoURI": "<string>",
        "chain_to_address": {},
        "chains": [
          {}
        ]
      }
    }
  ]
}

Body

application/json
fromToken
string
required
Example:

"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58"

toToken
string
required
Example:

"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"

fromChainId
number<double>
required
toChainId
number<double>
required
inputAmount
string
required

Response

200 - application/json

Generated Routes

id
string
required
steps
object[]
required
estimatedTime
string
required
totalFees
object[]
required