Recovering CELO from an Ethereum Address
In this guide, steps are outlined to help you recover your CELO (previously Celo Gold) if you accidentally transferred them to an Ethereum address.
This guide assumes you have access to the recipient's mnemonic recovery phrase (note, in Valora and Celo Wallet it's called your 'Account Key').
danger
There are risks associated with using a recovery phrase or a private key. Please keep these secret.
#
Recovering with CeloWallet.appThe Celo Wallet for Web and Desktop can be used to import mnemonic phrases with custom derivation paths (like Ethereum's) in order to recover your funds.
#
Steps to access funds- Visit celowallet.app in a modern browser (Chrome is recommended).
- For small accounts, you can import in the web version directly. For larger accounts, downloading the desktop version is strongly recommended.
- Click 'Use Existing Account', then 'Use Account Key', then choose the 'Advanced' tab.
- Specify your deriviation path and click import.
- Set a strong password and click Continue. You should reach the home screen and see your account funds.
#
Steps to migrate fundsOnce you've been able to access your funds, it's recommended that you move them to an account derived from the Celo derivation path.
- Create a new account: you can use the celowallet.app again, Valora, the Celo CLI, or any other wallets compatible with Celo.
- Copy the address of your new account
- In the first Celo Wallet window, click the Send button in the top-left.
- Send your funds to your new account.
- If you intend to keep this new account permanently, be sure to save its password and account key in a safe place!
#
Recovering with the Celo CLI#
PrerequisitesThis guide assumes that you have access to the following:
- A computer with a Command Line Interface. You can access it following these instructions:
- Celo Command Line Interface installed on your computer
- The 24-word recovery phrase of your Ethereum address
#
StepsPlease follow the instructions below closely, because missteps can lead to errors or permanent loss of your tokens. To understand these steps, please read What is Ethereum and Celo Overview.
#
Prepare your recovery phasesWrite your recovery phrase to a file using the following commands:
nano recovery.txt
- Paste
<word1> <word2> … <word24>
- Replace the
<word>
s in brackets with the words from your recovery phrase (usually 24 words, but can be 12, 15, 18, 21 or 24 words, as specified in the BIP 39 standard) - Press ctrl-o to save
- Press ctrl-x to exit
#
Recover your Ethereum address on CeloRecover your Ethereum address on the Celo network:
celocli account:new --mnemonicPath recovery.txt --derivationPath "eth" --node https://forno.celo.org
This command will return you with:
accountAddress
: the same address as your Ethereum addressprivateKey
: the private key associated with your address -- please record this private key on paper and not share with anyone elsepublicKey
: the public key associated with your address
Note
Using the eth
derivation path as above will work for the default Ethereum path used by nearly all Ethereum wallets ("m/44'/60'/0'/0/0"
). If your address was generated using a different derivation path you can specify that using a combination of the flags addressIndex
, changeIndex
and derivationPath
.
For example, for the address corresponding to the path m/44'/78'/1'/4/23
use:
celocli account:new --mnemonicPath recovery.txt --derivationPath "m/44'/78'/1'" --changeIndex 4 --addressIndex 23 --node https://forno.celo.org
#
Check your CELO balanaceCheck your Celo account balance using this command:
celocli account:balance <accountAddress> --node https://forno.celo.org
Replace <accountAddress>
with the accountAddress
you got from the previous step.
#
Transfer CELONow, you can transfer your CELO to an address of choice:
celocli transfer:celo --from <accountAddress> --to <addressOfChoice> --value <valueInCeloWei> --privateKey <privateKey> --node https://forno.celo.org
- Replace
<accountAddress>
with theaccountAddress
you got from the previous step. - Replace
<addressOfChoice>
with the address that you want to send CELO to. - Replace
<valueInCeloWei>
with the amount you want to send, but this number needs to be slightly lower than your balance, as there’s a transaction fee.
info
Note that the value has a unit of CELO Wei (1 CELO = 10^18 CELO Wei), so if you want to send 1 CELO, the <valueInCeloWei>
should be 1000000000000000000.