Skip to main content

What does “Could not build shortcuts for route” mean?

This Route API error means Enso could not find a valid path between the specified tokens on that network. Check addresses, support, and whether the action needs Bundle.

J
Written by Javier Diaz

This error from the Route API means Enso could not find a valid path between the specified tokens on that network. Check the token addresses and whether the operation actually belongs on the Bundle API.

Definition

“Could not build shortcuts for route” is returned by POST /shortcuts/route when the router cannot construct a path from tokenIn to tokenOut on the requested chain. It is a routing failure, not an authentication or rate-limit error.

How it works

Before changing product code, check the request:

  1. Confirm token addresses are correct for that chain (including native-token placeholders).

  2. Confirm both tokens are supported on that network via the live token and protocol endpoints.

  3. Confirm the operation is a Route use case. Actions such as redeem or harvest must go through the Bundle API with the delegate routing strategy.

  4. If the path is a custom action sequence, use Bundle instead of Route.

How Enso does this

Call POST https://api.enso.build/api/v1/shortcuts/route only when Enso should find the path into one destination. Use GET https://api.enso.build/api/v1/tokens and GET https://api.enso.build/api/v1/protocols or /standards to check support. For redeem, harvest, or a fixed action list, use POST https://api.enso.build/api/v1/shortcuts/bundle. See the FAQ.

FAQ

Does this mean my API key is invalid?

No. Invalid or retired keys return 401. This error means a path could not be built for the tokens and chain you sent.

Can I force a specific protocol instead?

Yes. Specify the actions and protocols on the Bundle API when Route cannot, or should not, choose the path.

Related articles

  • How do I see which chains and protocols Enso supports?

  • When should I use the Bundle API instead of Route?

  • How do I debug a failed bundle?

  • What is the difference between routing and bundling?

  • Why did the transaction fail on-chain after I got a quote?

Sources

Did this answer your question?