Skip to main content

What is bridgeRefundAssets?

bridgeRefundAssets is quote metadata listing where bridge-principal refunds would be sent for the selected path. An empty list is expected for same-chain routes.

J
Written by Javier Diaz

metadata.bridgeRefundAssets is an ordered list of bridge-principal refund destinations for the transaction Enso selected. An empty list is expected for same-chain routes and for bridge flows that have no protocol refund path.

Definition

The field is returned on successful POST /shortcuts/route, POST /shortcuts/bundle, and GET /shortcuts/route/nontokenized responses. Each entry describes where a principal refund would go if that refund path is used, not a confirmed payout.

How it works

  • Each entry includes the bridge protocol, refund chainId, principal token, and recipient. symbol is present when token metadata is available.

  • The refund chain may be the source or the destination, depending on the selected path. Intent routes include a destination-chain entry for the bridge token and the intent’s refund address.

  • Use this list in the wallet UI so the user can see where recoverable funds would land, alongside receiver and refundReceiver.

  • After a failed callback or a refunded intent, also check live status fields such as refundDetails.

  • An empty array is not an error on a same-chain quote.

How Enso does this

See the refund metadata section in Crosschain Routing. This article does not name individual bridge providers. Recovery behavior still depends on the selected endpoint and provider; track the submitted transaction with Bridge Transaction Status.

FAQ

Is bridgeRefundAssets proof that a refund was paid?

No. It describes refund destinations for the selected path. Confirm an actual refund from status fields and on-chain activity.

Should I hardcode the refund chain from this field?

No. Read the chainId and recipient on the current quote. They can change with the path Enso selected.

Related articles

  • What is the difference between receiver and refundReceiver?

  • Where do I find refund details after a destination callback fails?

  • Why was my bridged token refunded on the destination chain?

  • How do I set refundReceiver on a cross-chain route?

  • What happens if a cross-chain callback fails?

Sources

Did this answer your question?