DocsWrong-chain funds

Funds sent to the wrong chain

Recover tokens or ETH sent to your contract's address on a chain where the contract doesn't exist, by deploying a sweeper at the same address — supported on Ethereum, Base, Arbitrum, BNB Chain and Robinhood Chain.

A common and expensive mistake: someone sends funds to your contract's address — say a token or multisig deployed on Ethereum — but on Base or BNB Chain, where nothing is deployed at that address. The funds are not lost: whoever can create a contract at that address can move them.

Why it's recoverable

A contract address created with CREATE depends only on the deployer wallet and its nonce. If your wallet deployed contract X at nonce N on chain A, and on chain B your wallet's nonce hasn't passed N yet, your wallet can deploy a contract at exactly address X on chain B.

What reko does

  1. Finds the contracts your wallet deployed on each chain.
  2. Checks whether any of those addresses holds funds on another chain where it has no code.
  3. Checks your nonce on that chain is still at or below N.
  4. Your wallet sends a few empty transactions (0 to itself) until its nonce reaches N, then one transaction that deploys a minimal sweeper at address X. The sweeper's constructor pays reko's fee and sends everything else to you in that same transaction.

This works with any wallet (MetaMask, Rabby, Coinbase Wallet, Rainbow…), because each step is an ordinary transaction you confirm yourself. If your wallet has no gas on that chain and the recovery is worth enough, reko sends exactly enough first and the recovery repays it.

Don't use the wallet on that chain until the recovery finishes: every transaction moves the nonce, and once it passes N the address can't be reached any more. The app checks the nonce before every step and stops rather than sending anything at the wrong nonce.
This only works while your nonce on the destination chain is still below the original deployment nonce. If you've already sent more transactions on that chain than the deployment nonce, the address can no longer be reached. Scan before you transact on that chain.

Contracts deployed through CREATE2 factories (including most multisigs) and addresses of externally owned wallets are not covered by this method.

See what your wallet can recoverFree scan · 5 chains · about a minute
Scan my wallet