To run a node on my vps,

  1. --rpccorsdomain "mydomain.com" and set maxconnection, can be set at the same time so that only my own website can send rpc call for security, also I use max connection to limit the bandwidth?
  2. What is the correct geth command for init node and start node? Do I still need the file CustomGenesis.json?
  3. Usually how big the node is? and how long to download?

also, I created some demo account by script lightwallet, I cannot find which one is the private keys from the keystore object:


How can I find the private key for each account? This is just for testing


You can use this command to initialize your private node and allow rpc connection to specific port at the same time.

geth --datadir ./datadir_new --networkid 2018 --port 30303 --rpc --rpcapi “db,personal,eth,net,web3,debug” --rpccorsdomain=”*” --rpcaddr=”localhost” --rpcport 8545 console
  • the —networkid 2018, here is it 2018? not 1? – Louis Aug 20 '18 at 13:38
  • It would be what you have specified in your genesis block file. "config": { "chainId": 2018, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, – A. Eth Aug 20 '18 at 13:42
  • for main net, is the networkid 1? – Louis Aug 20 '18 at 14:12
  • Yes check here. ethereum.stackexchange.com/questions/17051/… – A. Eth Aug 20 '18 at 14:41
  • Thanks, actually how can I find the genesis file and the startup node ? – Louis Aug 21 '18 at 5:12
  1. Yes, you can use these two flags at the same time
  2. The commands can vary depending if you're setting up for a public network or private network. I'll assume you want a to connect to mainnet. So pass the --mainnet flag and it will configure everything for you, network ID, genesis, and bootnodes. Same can be done with --rinkeby and other known networks.
  3. The amount of storage needed by a node varies depending on the network and the synchronization mode. See this page https://etherscan.io/chart2/chaindatasizefast

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.