Can I run it on a private chain?
jiahaoc1993 opened this issue · comments
Please help
Kvhnuke finished (?) his guide. Let me know if anything is confusing or there are missing steps or anything. (This is over my head)
MyEtherWallet: Use Your Own Server Guide
- Download the latest copy of MyEtherWallet at https://github.com/kvhnuke/etherwallet/releases. You are going to want the source code - not the gh-pages or chrome-extension release as they do not contain the relay.
- Extract it and navigate to
json_relay_node
- Open the terminal or command prompt (windows) and navigate to that folder and run
npm install
.- This assumes you have nodejs installed in your computer, if not install here: https://nodejs.org/en/download/
- Once
npm install
is done, openresponse.js
file
- In
response.js
file you should see two different ip addresses, currently these are set to MEW servers. You have to change these to point them to your own parity node.Response.client.host
is for the ETH mainet andResponse.clientClassic.host
is for the EtherClassic node.- If you only have one node running feel free to set both to same ip addresses. If you have a local node running then you have to set them to
127.0.0.1
.
- Once you configure
response.js file
, go back to terminal and runnode runLocalServer.js
- Navigate to http://localhost/api.mew you should end up on a empty/white page. You shouldn't get any 404 or timeout errors.
- Navigate to
dist/js
and openetherwallet-master.js
. If you are changing other items in MyEtherWallet, you are going to want to rungulp
in command line and change the following inapp/scripts/ajaxReq.js
, and let it compile. Changing it indist/js
allows you to avoid gulp/compiling.
- Set the line 26,
ajaxReq.SERVERURL = “http://localhost/api.mew”
; - Now navigate back to
dist
folder and openindex.html
. Now you are using your own custom node!
Pretty good. Now, how hard would it be to replace these constant strings with user-configurable IP addresses so no coding is needed to make these changes?
(I am a programmer, but 99% of everybody else is not)
THANK YOU VERRRRRRRY MUCH!!!!
awesome guide and app, I got an instance of mew up and running in about half a day, the only part of the guide that is missing is to setup for testnet.
I've got it setup on my mew relay node so that I can switch SSH tunnels to talk to my mainnet or testnet node, however using testnet I am running into some issues (can't send a testnet tx but I can load wallet info).
I'm guessing there are some code changes to the site that need to be made?
Currently EIP155 Txs are hard coded for only mainet, for test net you have to change the chainId to 3 I believe. I'll merge the latest ethereumjs-tx as soon as I get a chance and let user easily configure the chainId. If you would like to configure it manually it is at https://github.com/kvhnuke/etherwallet/blob/mercury/app/scripts/ethFuncs.js#L66
thank you, I've been checking it out from a hosting perspective and love how MEW deploys. It was super easy to put up the relay node and get the site up and running, doesn't appear overly hard to scale either.
I'll wait for the update and play around with it then, cheers.
Great to hear! Feel free to open pull requests if you do something you think other people would find useful! I added a dropdown for switching nodes but it's not hooked up yet....I also think its hidden currently. Frontend code can be copy/pasted from here regardless:
Launching this tonight as well.