How to setup Parity at 42
This article is a quick how-to about setting up a local Ethereum node on our size-constrained macOS sessions at school.
Following the official instructions, start off by installing Parity using Homebrew:
brew tap paritytech/paritytech brew install parity
Modify (or create)
[parity] chain = "ropsten" base_path = "/goinfre/io.parity.ethereum" [footprint] db_compaction = "hdd"
Make sure the aforementioned directory exists for Parity to store its contents on:
Add Parity to
brew services start paritytech/paritytech/parity
- Use Parity in your browser by visiting 127.0.0.1:8180.
- Frameworks like Embark or Truffle communicate with the blockchain using a protocol called JSON-RPC.
- Managing Parity through
brew servicesis convenient: it will run at startup, sync to the Ropsten blockchain by default (following our config file), and provide a JSON-RPC interface on port 8545.
- In your browser, you can ask MetaMask to use whichever blockchain Parity is running (per your settings) by selecting “Localhost 8545”.