[Ethereum] ny safe way to send money from a cold wallet, using an untrusted computer

cold-storageofflineraw-transactionSecuritytransactions

You have 2 computers. One is 100% offline and, thus, trusted. Other is online. Private keys are stored on the offline computer and the online computer has no access to it. Is there any way to sign a transaction using the offline computer, then manually (i.e., typing in a keyboard) transfer it to the online computer, so that it transmits it to the blockchain?

Best Answer

We at MyEtherWallet.com implemented an offline transaction tool to do exactly this. While most people who are cold-storage fanatics know command line and the inner-workings of gas price and nonce, this allows you to do it via GUI.

  1. Navigate to the "Offline Transaction" tab via your online computer. Here you will generate the current gas price and nonce.

  2. Enter the FROM address in the field. Please note, this is the address you are sending FROM, not TO. This generates the nonce and gas price.

  3. Move to your offline computer. Enter the TO ADDRESS and the AMOUNT you wish to send.

  4. Enter the GAS PRICE as it was displayed to you on your online computer in step #1.

  5. The GAS LIMIT has a default value of 21000. This will cover a standard transaction. If you are sending to a contract or are including additional data with your transaction, you will need to increase the gas limit. Any excess gas will be returned to you.

  6. Enter the NONCE as it was displayed to you on your online computer in step #1. If you wish, enter some data. Data is optional. If you enter data, you will need to include more than the 21000 default gas limit. All data is in HEX format. Select your wallet file -or- enter/paste your private key and unlock your wallet.

  7. Press the "GENERATE SIGNED TRANSACTION" button.

  8. The field below this button will populate with your singed transaction. Copy this and move it back to your online computer, or you can use the QR code provided.

  9. On your online computer, paste the signed transaction into the text field in Step 3 and click "SEND TRANSACTION". This will broadcast your transaction.

Alternatively, you could use other services in order to broadcast the signed transaction. Etherscan has a field you can use to broadcast transactions.

drcode on reddit made a tool to decode a signed transaction so you can verify it's doing what it says it is doing.


FYI, everything on MyEtherWallet is almost 100% offline. The only thing that leaves your computer while sending is the signed transaction, which is generated by your browser. We also receive the nonce and gas price, which is why you must generate those bits of information online.

Related Topic