How to Swap Tokens to Another Wallet: Direct vs Separate ParaSwap
Swap tokens to another wallet with ParaSwap: set userAddress as the funded sender, receiver as the destination, and confirm the output there.
The Chain Media Editors5 min read
ParaSwap delivers a swap's output directly to another wallet when the funded sender is userAddress and the destination wallet is receiver. ParaSwap is a DeFi trading protocol that aggregates liquidity across decentralized exchanges to route token swaps. Keep the signing wallet in userAddress and move only the output destination to receiver; substitute the destination into userAddress and the transaction reverts with a balance or allowance error.
The Market transaction builder takes userAddress and receiver as separate fields, so the signing wallet and the output destination can differ. For this swap, head to ParaSwap and use the builder with the funded sender as userAddress and the destination wallet as receiver. ParaSwap routes the swap across its liquidity sources and delivers the output to the receiver you set, leaving the sender's output balance unchanged.
How can a ParaSwap swap deliver its output directly to another wallet?
Set the funded sender as userAddress and the destination wallet as receiver in the Market transaction builder. The receiver determines output delivery, so confirm receipt at the destination wallet.
What to Have Ready Before the Swap
The pieces for a swap to another wallet: a funded sending wallet, a signer, gas, verified recipient and token contracts, and the token pair and amount.
- Funded sending wallet — the account holding the input tokens and paying gas. This is userAddress.
- Signer — the private key or wallet client that authorizes the transaction.
- Gas — native tokens on the chain, ETH on Ethereum, for the approval and swap transactions.
- Verified recipient and token contracts — the destination address and the output token's contract, checked against the token's official source.
- Token pair and amount — what you sell and what the swap should return.
A separate receiver gets the swap output, so the signing wallet's output balance can remain unchanged. That is the core of this flow: userAddress funds and authorizes, receiver collects.
Build the ParaSwap Transaction and Confirm Delivery
The swap to another wallet runs through five steps: quote, approve, build, sign, and confirm.
- Quote the pair and amount. Request a price route from the aggregator for the input token, output token, and amount. The response gives you the priceRoute and the expected output.
- Confirm the sender's approval. The token contract must allow the swap contract to spend the input tokens. If the allowance is missing or insufficient, approve it from the sender wallet first.
- POST the transaction request. Send a POST to /transactions/{chainId} with the priceRoute, amounts, tolerance, userAddress, and receiver. The userAddress must be the funded sender; the receiver must be the destination wallet. The response returns an unsigned transaction.
- Review, sign, and broadcast. Check the returned calldata and gas estimate, sign with the sender's signer, and broadcast. An HTTP-only SDK configuration needs a signer or contract caller to authorize execution — the API cannot sign for you.
- Confirm receipt at the destination wallet. Look up the receiver address on a block explorer and verify the output token transfer arrived. The Transfer event shows the receiver as the to address.
The task is done when the output token transfer appears at the receiver address and the receiver's balance reflects the swap.
Why the Receiver, Not userAddress, Determines Delivery
The receiver parameter decides where the output lands, and substituting the destination into userAddress makes the swap revert. The swap contract checks the userAddress's balance and allowance when it executes; if either is missing, the transaction fails.
Restore the funded sender in userAddress and set the receiver separately. The Market builder accepts both fields independently, so the signing wallet and the output destination never have to be the same account. The receiver parameter is what the swap contract uses for the output transfer, and that address ends up with the tokens.
This also frames the options. Direct delivery through the receiver parameter lands the output at the destination wallet in one transaction. A separate transfer sends the output to the sender first, then needs another transaction to move it. If you want the output at another wallet without an extra hop, the receiver parameter is the choice.
Receiver, Chain, and Recovery Questions
The receiver parameter accepts any Ethereum address, stays on the same chain, and is final after settlement.
Can the receiver be an exchange deposit address?
Yes. The receiver is any valid Ethereum address, including an exchange deposit address. The swap output is a standard ERC-20 transfer to that address, and the aggregator does not distinguish between an EOA and a contract. Confirm the deposit address supports the output token before you set it as receiver.
Can output arrive on another chain?
No. A single swap operates on one chain; the input and output are on the same chain, and the receiver is a chain-local address. Cross-chain delivery requires a bridge or a separate swap on the destination chain, not the receiver parameter.
Can a mistaken recipient be corrected after settlement?
No. Once the transaction is broadcast and settled, the output transfer is final on-chain. The receiver address is part of the transaction data and cannot be changed after broadcast. There is no reversal mechanism; the only recovery path is asking the recipient to return the tokens.
Check the receiver address once, check it again, and then sign. The receiver parameter is the entire point of the swap — get it right and the output lands where you want it; get it wrong and the tokens are gone.