Superbridge
Start typing to search...

Guides

Routes vs. Quotes

Understanding the difference between routes and quotes

The /routes endpoint returns an array of route results, one per provider. Each result always includes the provider information, and the result field will be either a quote or an error.

Route Result

{
  "data": [
    {
      "provider": { "name": "Across", "logoUri": "..." },
      "result": { ... }
    }
  ]
}

Quotes

When a provider can fulfill the request, result contains a quote with the initiating transaction, approval information, fees, expected receive amount, and transaction steps.

You can distinguish a quote from an error by checking for the presence of the initiatingTransaction field.

Errors

When a provider can't fulfill the request, result contains an error object with a type field. See Route Errors for the full list of error types.