When a destination callback fails, check refundDetails on the status response: token, amount, recipient, and isNative. Quote metadata may also list expected refund destinations in metadata.bridgeRefundAssets. A callback failure cannot revert the finalized source-chain transfer.
Definition
Refund details tell the wallet where recoverable funds were sent after destination execution failed. They are the live counterpart to the refund destinations previewed on the quote.
How it works
Poll
GET /api/v1/bridge/route(or the matching status endpoint) until you have a terminal or refunded state.If destination execution failed, inspect
ensoDestinationEvent.successwhen that field is present.falsemeans the destination callback failed; checkerrorandrefundDetails.refundDetails.recipientis where the funds were sent. Compare it with the quote’srefundReceiverandbridgeRefundAssets.Show the token, amount, chain, and recipient in the wallet so the user can look for the funds.
Recovery behavior is provider-specific. Do not assume a source-chain refund for every failed callback.
How Enso does this
Bridge Transaction Status documents refundDetails and the destination event fields. Crosschain Routing documents bridgeRefundAssets. Not every status endpoint includes a destination event; use the fields that are present and the Bridge Status page for the selected provider.
FAQ
Why is ensoDestinationEvent null?
null can mean the destination event has not been found yet because the bridge is still in transit. Keep polling rather than treating null as a failure.
Is this the same as an intent-route destination refund?
Related, but not identical. An intent refund happens when the keeper cannot complete the destination route as quoted. A callback failure is a failed destination action list. In both cases, read the refund recipient from status and quote metadata.
Related articles
What happens if a cross-chain callback fails?
What is bridgeRefundAssets?
What is the difference between receiver and refundReceiver?
Why was my bridged token refunded on the destination chain?
Are cross-chain transactions atomic?
