Skip to main content

What is the difference between receiver and refundReceiver?

receiver is the destination address that should receive the output. refundReceiver is the address that should receive a refund when a refund path applies. They can be different wallets.

J
Written by Javier Diaz

receiver is the destination address that should receive the output tokens. refundReceiver is the address that should receive a refund when a refund path applies. They can be different wallets, and they can live on different chains.

Definition

A cross-chain route has a successful delivery path and, in some failure cases, a refund path. receiver is for the successful output. refundReceiver is for recoverable funds when the route does not complete as quoted.

How it works

  • Set receiver to the destination-chain address that should get tokenOut (or, on Solana, the case-sensitive Solana recipient).

  • Set refundReceiver when you need an explicit refund address. On an intent route, a destination refund goes to refundReceiver, or to receiver when refundReceiver is not set.

  • On Solana destination routes, refundReceiver is a required, nonzero EVM address on the source chain. The Solana receiver and the EVM refundReceiver are separate.

  • refundReceiver is not a generic Bundle bridge action argument. Route-level refund fields and recovery behavior depend on the selected endpoint and bridge provider.

  • Quote metadata can also list expected refund destinations in metadata.bridgeRefundAssets.

How Enso does this

See Crosschain Routing and Solana routing. Always read the current quote’s refund metadata rather than assuming a single chain for every refund.

FAQ

Can receiver and refundReceiver be the same address?

Yes, when both are valid for their chains. On Solana destinations they cannot be the same kind of address: one is Solana, the other is EVM.

If I omit refundReceiver, where does an intent refund go?

To receiver on the destination chain, according to the intent-route docs.

Related articles

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

  • How do I send a cross-chain output to a different receiver?

  • What is bridgeRefundAssets?

  • Can I route assets to Solana with Enso?

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

Sources

Did this answer your question?