Skip to main content

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

Set receiver to the destination-chain address that should get tokenOut. It does not have to be the signer. On Solana, use a case-sensitive Solana address and a separate EVM refundReceiver.

J
Written by Javier Diaz

Set receiver to the destination-chain address that should get tokenOut. It does not have to be the wallet that signs the source transaction. On Solana destinations, use a case-sensitive Solana address for receiver and a separate EVM refundReceiver.

Definition

receiver is the successful-delivery address on the destination chain. fromAddress is the source-chain signer (and the usual approval holder). Keeping them distinct is how you pay a different wallet, a deposit address, or a user’s destination account.

How it works

  • On the Route request, set fromAddress to the signer and receiver to the destination recipient.

  • tokenOut must be the asset address (or mint) on the destination chain, not the source-chain token address.

  • For an intent route, the keeper sends tokenOut to receiver after destination execution.

  • If a refund should go somewhere other than that recipient, set refundReceiver as well.

  • Submit the returned tx unchanged. The destination recipient does not sign the transfer.

How Enso does this

POST https://api.enso.build/api/v1/shortcuts/route with destinationChainId and receiver. In a Bundle, receiver is a required argument on the bridge action. See Crosschain Routing and Solana routing. Preserve Solana address case throughout.

FAQ

Can I use an EVM address as the Solana receiver?

No. The Solana receiver must be a Solana address. Use refundReceiver for the EVM refund address.

Does changing receiver after the quote work?

No. Request a new quote. Do not edit the returned transaction.

Related articles

  • What is the difference between receiver and refundReceiver?

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

  • How do I bridge and swap in one flow?

  • Do I need to sign a transaction on the destination chain?

  • Can I route assets to Solana with Enso?

Sources

Did this answer your question?