Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (60 sloc) 4.7 KB

{ "title" : "Running MyCrypto With Your Own Personal Node", "sort" : "08", "category" : "Networks & Nodes", "description" : "Networks & Nodes", "date_published" : "2017-07-05T08:00:00+08:00", "date_modified" : "2018-11-29T08:00:00+08:00" }

---%

You can use MyCrypto to connect to your own node, which decouples the frontend and features that you love about MyCrypto from our backend infrastructure. This means more nodes send more transactions and is closer to the decentralized nature of Ethereum. It also means that you fully control the entire process and don't rely on us.

Warning

When connecting to your own node, please do not have any accounts in that node. Meaning: Do not do things like Geth account add or store your private keys in the Geth Keystore folder.

You will be using MyCrypto to sign and then broadcast the transactions via your node. You will not be using your node to sign and send. If you do not heed this warning, bad things could happen if another setting gets changed. Here's one example. Better safe than sorry.

Specifics to Connect to Your Local Node

First, download and run the MyCrypto Desktop App.
Run Geth or Parity with correct flags
  • Geth: geth --syncmode=light --rpc --rpccorsdomain "null" --keystore "dont_put_secret_files_here_ever"

  • Parity: parity --jsonrpc-cors "null" --keys-path "dont_put_secret_files_here_ever"

Connect to your node
  • Open the MyCrypto desktop application.

  • At the bottom left, there is a node switcher. Here is where you can select which node / chain you are connected to.

  • Click it, scroll all the way down, and choose Add Custom Node.

  • Enter a Node Name for your node.

  • URL: http://127.0.0.1:8545.

  • Select the chain. This is for some frontend features, such as default tokens, ENS addresses, and more. See above for more details.

  • Click "Save & Use Custom Node."

  • This should immediately connect or an error message will display.

  • Go to the "View & Send" tab and unlock via "View Address."

  • Verify that balances are loading correctly.

Hosted Node

  • Make sure your node is SSL.
Run Geth or Parity with correct flags
  • Geth: geth --datadir eth-mainnet --syncmode=light --rpcaddr "localhost" --rpc --rpccorsdomain="https://mycrypto.com/" --unlock 1 console
Connect to your node where it's hosted
  • Go to https://mycrypto.com/ or your local MyCrypto application.

  • In upper right (MyCrypto website) or bottom left (MyCrypto desktop application), there is a node switcher. Here is where you can select which node / chain you are connected to.

  • Click it and choose Add Custom Node.

  • Enter a name for your node.

  • Enter the URL.

  • Select the chain. This is for some frontend features, such as default tokens, ENS addresses, and more.

    • ETH: Shows default ETH tokens, EIP-155=true, and chainid=1, and uses etherscan.io for links to addresses and transactions.

    • ETC: Shows default ETC tokens (none...yet?), EIP-155=false, and chainid=false, and uses gastracker.io for links to addresses and transactions.

    • Ropsten / Kovan / Rinkeby: Shows default testnet tokens, EIP-155=true, and chainid=3/?/?, and uses testnet.etherscan.io for links to addresses and transactions.

    • Custom: Allows you to select whether EIP-155 is true or false, and provide a Chian ID if it's true.

  • Click "Save & Use Custom Node."

  • This should immediately connect or an error message will display.

  • If there are no errors, go to https://mycrypto.com/account and unlock via "View Address."

  • Verify that balances are loading correctly.

Requirements

The URL must have an SSL certificate (aka be https://). You can get a free SSL certificate via LetsEncrypt very quickly.

If your node is local, it's much easier to simply also run MyCrypto locally. Download the latest version of MyCrypto here.

If you wish to run MyCrypto locally + hardware wallet, you will need to have a self-signed certificate in order to connect to your hardware wallet via U2F. Browsers that support U2F require that these calls take place over SSL. This is not something we have control over.

Parity

Geth