1. Jun 07, 2018 Ethereum is popular platform for the cryptocurrency. In order to ensure that your contract will run perfectly on the main network, it is important to test them on ethereum node by setting up an.
  2. Windows vs macOS vs Linux for Ethereum Development I've just started setting up my Ethereum development environment in Windows 10. To take me from a clean Windows install to having my full IDE set-up how I want it involves installing many packages, most of which have versions for macOS.
2016-05-04This post is over 2 years old and may now be out of date
Setting Up Public Node For Ethereum Macos

(1 minute read)

Macos theme for steam. For a recent project I'm working on I needed to get geth running as a background service on Ubuntu so that I could connect to it via HTTP-RPC and obtain blockchain information. In this post I will outline the steps I took to make this work on my Digital Ocean droplet.

Setting

I haven't seen any public RPC nodes(yet). However, you may want to ask yourself whether or not you can actually trust such a node. In theory, that node could feed you whatever data it wanted. That said, there may be better options but you don't really say what you're goal is there. Etherscan has an API that could potentially be useful to you.

I created a $5 per month droplet (512 MB RAM) and setup 1 GB of swap space on it as follows:

That sets up swap space and reboots the server. Next let's install the supervisor daemon, which will be responsible for auto-starting geth at bootup and restarting it if it goes down:

Now let's install geth using the official instructions:

Finally we have to add a configuration file to supervisor to let it know that it should run geth, Create /etc/supervisor/conf.d/geth.conf and fill it with:

Note that we use geth's --fast option to ensure the initial sync of the blockchain happens as quickly as possible. The downside of this is that you won't have the full data for the entire historical blockchain, just the most recent stuff and for new incoming blocks. The command also enables RPC access to this geth instance, so that our dapps can connect to it. If you do this on a public hosted server I highly recommend setting firewall rules (I use arno-iptables-firewall) to prevent unauthorized access to geth's RPC server.

Now just restart supervisor to startup geth:

Ethereum Full Node Size

Boom! You can now attach a console to your running geth instance by typing geth attach. You can then query it using the standard commands.

Ethereum Node List

  • ⇦Thinodium - a light-weight Object Document Mapper for Node.js
  • geth-private - easily setup private Ethereum blockchains from the command-line and Node⇨