Skip to main content

What are callback complexity limits in a bundle?

Docs cap top-level actions at 50, total actions including callbacks at 100, actions per callback at 10, and callback nesting depth at 5. Some bridges also have payload or gas limits.

J
Written by Javier Diaz

Docs cap top-level actions at 50, total actions including callbacks at 100, actions per callback at 10, and callback nesting depth at 5. Some bridges also have payload or gas limits; check the current Crosschain Routing and Bundle docs for those constraints.

Definition

A Bundle can nest destination callbacks under a bridge action. These limits keep a request within what the API will construct.

How it works

  • Count top-level actions in the request body first (maximum 50).

  • Count every action inside callbacks toward the total of 100.

  • Keep each callback at 10 actions or fewer, and nest no more than 5 callback levels beneath a top-level action.

  • Some bridge callbacks also require a documented first action, such as a balance check, and may have provider-specific payload or gas limits.

How Enso does this

The FAQ and the Bundle API publish the same 50 / 100 / 10 / 5 caps. This article does not name bridge providers or quote provider-specific payload sizes. See Crosschain Routing and How do I attach destination actions after a bridge?

FAQ

What happens if I exceed a limit?

The bundle cannot be constructed as requested. Reduce the action list or nesting, then retry.

Do these limits apply to Route?

They apply to Bundle actions and callbacks. A Route response is a path Enso selected; if you need a custom callback, you are on Bundle.

Related articles

  • How do I attach destination actions after a bridge?

  • What is a bridge callback?

  • How do I bundle multiple DeFi actions into one transaction?

  • How do I add checks or slippage guards inside a bundle?

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

Sources

Did this answer your question?